i have written a code to get LU decomposition,now i need a code to solve LUx=b

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
Torsten 2018년 2월 22일
First solve L*y = b for y, then solve U*x = y for x.
Best wishes
Torsten.

댓글 수: 2

so just y=(L^-1)*b then (U^-1)*y=x ?
thanks so much
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개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

질문:

2018년 2월 22일

댓글:

2018년 2월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by