Request for Guidance about the sign of Singular Value Decomposition
8 次查看(过去 30 天)
显示 更早的评论
Dear Friends, Kindly guide me about the sign of U and V in SVD.Suppose I have a matrix A=[3 1 1;-1 3 1] Whenever,I run the command [U,S,V]=svd(A) I get the following answers: U =[-0.7071 -0.7071;-0.7071 0.7071]
S =[3.4641 0 0;0 3.1623 0]
V =[-0.4082 -0.8944 -0.1826;-0.8165 0.4472 -0.3651;-0.4082 0.0000 0.9129]
The signs of S is ok, but all the signs of U and V are opposite against the answer written in article. Meaning that if I multiply matrix U and V with -ve sign then my answers are matching. Kindly guide me its reasons. I will be very thankful to you.
Best Regards.
0 个评论
回答(1 个)
Kaushik Lakshminarasimhan
2017-2-15
The sign ambiguity of SVD output is well known. SVD does not have a unique answer because changing the signs of the corresponding vectors in U and V does not change the reconstructed output A = U*S*V'. So the answer that MATLAB gives you is not wrong.
However if you already knew all of this and you just want to know how MATLAB chooses the sign, I think it has to do with the way MATLAB implements the SVD algorithm. May be someone else can give a more elaborate reason.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!