Firstly I dont know if this belongs in this forum but its my first post!
Now down to bussiness:
I have a 56x4 matrix and another 56x4 matrix which and i want to make a 4x4 transformation matrix.
I can simply make the matrix by doing MatrixA/MatrixB
However, I would like to try to optimize two variables:
- the accuracy of the transformation matrix converting MatrixA to MatrixB
- minimize the Sum(TransformationMatrix.^2)
How would I go about doing this?
The only way i can think of doing this is by getting MatrixA/MatrixB and randomly varying it, testing the accuracy and the Sum(TransformationMatrix.^2)
Is there a more elegant or better way to do this? I'm coding it so its fine if its iterative.