Ax=b solution with singular matrix.

3 ビュー (過去 30 日間)
sermet
sermet 2013 年 12 月 3 日
コメント済み: Roger Stafford 2013 年 12 月 3 日
%x+2y+3z=14
%4x+5y+6z=32
%7x+8y+9z=41
(actually, x=1,y=2,z=3)
A=[1 2 3;4 5 6;7 8 9]
b=[14;32;41]
x=A\b
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 1.093272e-16.
%in order to eliminate this singularity singular value decomposition strongly recommended.
How can I perform svd for solving this equation properly?

採用された回答

Matt J
Matt J 2013 年 12 月 3 日
  4 件のコメント
sermet
sermet 2013 年 12 月 3 日
ok, Roger, thank you I just made mistake.
Roger Stafford
Roger Stafford 2013 年 12 月 3 日
A geometrical interpretation of these equations would be that they each represent a plane in 3D. Two of the planes intersect in a line, and the third plane is parallel to this line, but never intersects it, so the three planes never have a common intersection. Even trying to find a "best solution" has no unique answer - all points along a certain infinite line would have the same least squares error.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by