SVD and RREF don't give same result

1 回表示 (過去 30 日間)
Sudipta Sinha
Sudipta Sinha 2014 年 5 月 23 日
コメント済み: Matt J 2014 年 5 月 24 日
Hi All,
I am having a problem with SVD. The function rref works fine for solving a set of overdefined linear equations AX=b; but I am having a trouble to get the same result using SVD.
For rref, i was using the synatx solution=rref([A,b]) and it gave correct result
For SVD, i was using the syntax [u, s, v]=svd(A,0) and then solution=v*((u'*b)./diag(s))
However, the solutions are completely different. What should I do for achieving the same result
Thanks in advance Sudipta
  6 件のコメント
Sudipta Sinha
Sudipta Sinha 2014 年 5 月 24 日
yes, that is my data. i need to solve this one. none of the methods are giving reasonable result. how do i generate a .mat file
Matt J
Matt J 2014 年 5 月 24 日
Use the SAVE command to save variables to a .mat file (and the LOAD command to reload them).

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeNumerical Integration and Differential Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by