How to solve a 5x5 matrix in Matlab?

조회 수: 36 (최근 30일)
Ahmed Saeed Mansour
Ahmed Saeed Mansour 2019년 8월 8일
댓글: Ahmed Saeed Mansour 2019년 8월 9일
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일
A\b

추가 답변 (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 CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by