i have written a code to get LU decomposition,now i need a code to solve LUx=b
1 次查看(过去 30 天)
显示 更早的评论
L,U is n*n matrix i'm working on Doolittle method of solving Ax=b i need a code to solve for x
采纳的回答
Torsten
2018-2-22
First solve L*y = b for y, then solve U*x = y for x.
Best wishes
Torsten.
2 个评论
John D'Errico
2018-2-24
No. Don't use an inverse!
Did your teacher tell you about back and forward substitution? They should have done so by this point.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Mathematics and Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!