How to do SVD without function..?
8 ビュー (過去 30 日間)
古いコメントを表示
I have a Three parameters Xi,Yi,Zi.. and I am finding a SVD of them..
A=[Xi,Yi,Zi,ones(length(Xi),1)];
[U,S,V]=svd(A);
ss=diag(S);
i=find(ss==min(ss));
coeff=V(:,min(i));
coeff=coeff/norm(coeff(1:3),2);
and i am getting four parameters for plane.. the code is ok.. but,
is there any method to do SVD without using SVD function..?
6 件のコメント
回答 (1 件)
Walter Roberson
2012 年 11 月 26 日
2 件のコメント
Walter Roberson
2012 年 11 月 27 日
That is the code that is used by MATLAB (though it is not impossible that Mathworks has tweaked the code.) Everything that is documented about exactly how MATLAB's SVD function operates is in that source code (when you include the related files for the routines it calls.)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!