Solve matrix series equation
1 次查看(过去 30 天)
显示 更早的评论
I have 7x2 matrix and 7x3 matrix that contains 2D coordinates and related 3D coordinates. I need to find the projection matrix(
) by using these 14 coordinates in below equation.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/799179/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/799184/image.png)
I gave a try using symbolic math toolbox. But I could not figure out a way to continue from this step.
syms x [2,1];
syms X [3,1];
syms r [2,3];
eq = x==r*X;
1 个评论
Rik
2021-11-13
An exact solution might not be possible with numeric inputs. Did you try a numeric fitter? A right-division of one of the 2D sets by the 3D counterpart might give you a reasonable initial estimate for the projection matrix.
回答(1 个)
David Goodmanson
2021-11-14
编辑:David Goodmanson
2021-11-14
Hi Ramesh,
This is an overdetermined system, but if you define x as a 2x7 matrix of 2d coordinate values and X as a corresponding 3x7 matrix of 3d coordinate values, then
r = x/X
provides a least squares solution for r.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear Algebra 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!