Find the variable vector x using the LU decomposition of the following linear system. (Please also write Matlab programming code.)
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Find the variable vector x using the LU decomposition of the following linear system. (Please also write Matlab programming code.)
1 Kommentar
Dyuman Joshi
am 13 Mai 2023
Please show what have you tried yet.
If you need help to begin with, check out the LU matrix factorization documentation - lu
Antworten (1)
Sai
am 17 Mai 2023
I understand that you wanted to determine the variable x using LU decomposition method.
Please refer to the below code snippet for the same
A = [-1 1 2; 1 2 -1; -2 -2 2]
c = [7;2;0]
[L,U] = lu(A)
%In LU Decomposition, LUX = c
D = L*U
x = (D)\c
Please refer to the following documentation link for more information on LU decomposition
0 Kommentare
Siehe auch
Kategorien
Mehr zu Linear Algebra finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!