Info

This question is closed. Reopen it to edit or answer.

solve Ax=b by singular value decomposition

1 view (last 30 days)
Jiapeng
Jiapeng on 16 Nov 2022
Closed: John D'Errico on 16 Nov 2022
After I've got U,S,V by [U,S,V] = svd(A), how do I get x?
Is it x = (V*(S^(-1)*U')*b?
  3 Comments
Steven Lord
Steven Lord on 16 Nov 2022
Is there a particular reason you're using svd rather than simply using the \ operator?
Torsten
Torsten on 16 Nov 2022
Is it x = (V*(S^(-1)*U')*b?
No, only if S has all singular values not equal to 0.
Compare
Section
Algorithms
at the bottom of the web page.

Answers (0)

This question is closed.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!