You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
145 B

clear,clc
A=[1 1 0 3;
2 1 -1 1;
3 -1 -1 2;
-1 2 3 -1]
[L1,U1]=lu_decompose(A)
B=[8;7;14;-7]
V=inv(L1)*B
X=inv(U1)*V