Recursive Solution Of System Of lInear Equations

조회 수: 3 (최근 30일)
Harel Harel Shattenstein
Harel Harel Shattenstein 2018년 5월 21일
답변: Steven Lord 2018년 5월 21일
Given a square upper triangular matrix A and a solution column b. Write a recursive algorithm to find the vector x
So the end case is at the last coefficient we have
x_n=b(end)./A(end,end)
what will be the recursive call? how can I save a vector in a recursive function? it will start over and erase the vector?

답변 (1개)

Steven Lord
Steven Lord 2018년 5월 21일
If I were to give you the system of equations:
A + B = 5
2*B = 4
you can use the last equation to determine B. Once you do, that equation has no more information to provide you, so you can eliminate it from your system of equations. How would you solve the remaining equation(s) in the system? [I'm not asking for the value of A, I'm asking how you would determine the value of A.]
Once you've answered that question, can you generalize that process to the following system of equations?
A + B + C = 8
2*B - C = 7
3*C = 3

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by