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

2 visualizzazioni (ultimi 30 giorni)
L,U is n*n matrix i'm working on Doolittle method of solving Ax=b i need a code to solve for x

Risposta accettata

Torsten
Torsten il 22 Feb 2018
First solve L*y = b for y, then solve U*x = y for x.
Best wishes
Torsten.
  2 Commenti
John D'Errico
John D'Errico il 24 Feb 2018
No. Don't use an inverse!
Did your teacher tell you about back and forward substitution? They should have done so by this point.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Mathematics in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by