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 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!