I need to compute a transformation matrix (TM) while using the least squares approximation. The equation used is: . It needs to be solved in a way that x is minimal. The A and B variables are measured at the same time and known values. Let's say that A is a 3x3 matrix: A = [1, 23, 2; 12, 25, 9; 7, 34, 5];
And B is a 8x3 matrix: B = [3, 27, 4; 2, 43, 12; 14, 36, 9; 6, 22, 5; 7, 38, 14; 13, 27, 11; 6, 41, 8; 7, 38, 15];
The result should be a [8x3] transformation matrix.
I hope someone has a clue how to compute the transormation matrix.