GetMatElement() does not correspond to anything

Blitz3D Forums/Blitz3D Programming/GetMatElement() does not correspond to anything

If it's global, then this should work, but again, it is gibberish:
bone1=CreatePivot()
PositionEntity bone1,EntityX(bone),EntityY(bone),EntityZ(bone)
RotateEntity bone1,EntityPitch(bone),EntityYaw(bone),EntityRoll(bone)

WriteLine(f,GetMatElement(bone1,0,0)+","+GetMatElement(bone1,0,1)+","+GetMatElement(bone1,0,2)+",0.0,")
WriteLine(f,GetMatElement(bone1,1,0)+","+GetMatElement(bone1,1,1)+","+GetMatElement(bone1,1,2)+",0.0,")
WriteLine(f,GetMatElement(bone1,2,0)+","+GetMatElement(bone1,2,1)+","+GetMatElement(bone1,2,2)+",0.0,")
WriteLine(f,EntityX(bone1,1)+","+EntityY(bone1,1)+","+EntityZ(bone1,1)+",1.0;;")

FreeEntity bone1