How to solve a 5x5 matrix in Matlab?

17 ビュー (過去 30 日間)
Ahmed Saeed Mansour
Ahmed Saeed Mansour 2019 年 8 月 8 日
Hello, I have a 5x5 matrix and I wanna slove it...Any help please?
Thank you !
A=[1 1 -1 4 5 ; 0 1 3 5 6 ; -1 0 -2 8 7 ]
b=[9;3;2;6;7]
  2 件のコメント
Walter Roberson
Walter Roberson 2019 年 8 月 8 日
That looks like a 3 x 5 matrix for A, not a 5 x 5.
Ahmed Saeed Mansour
Ahmed Saeed Mansour 2019 年 8 月 9 日
I am sorry, you are right, here is the correct matrix:
A=[300 -100 0 0 0 ; -100 200 -100 0 0 ; 0 -100 200 -100 0; 0 0 -100 200 -100; 0 0 0 -100 300 ]
b=[20000;0;0;0;80000]
A\b
And after reading the answers here, I got the solution, thank you so much !

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

採用された回答

Walter Roberson
Walter Roberson 2019 年 8 月 8 日

その他の回答 (1 件)

the cyclist
the cyclist 2019 年 8 月 8 日
編集済み: the cyclist 2019 年 8 月 8 日
A\b
Take a look at this documentation. Does that do what you want?
  1 件のコメント
Ahmed Saeed Mansour
Ahmed Saeed Mansour 2019 年 8 月 9 日
Thank you very much, it is very helpful !

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

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by