How to write a back substitution function given the pseudo code?

I have the pseudo code but am not sure how to convert it into an actual function of back substution
1: for i from n to 2
2: if ith row is a zero row
3: continue
4: end
5: c_nz <- column index of nonzero element of ith row
6: % divide ith row by U(i, c_nz) if you didn’t do it in fwd elimination
7: for j from i-1 to 1
8: % Eliminate c_nz column of jth row by multiplying and subtracting ith row
9: end
10: end

답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

릴리스

R2019b

질문:

2020년 10월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by