diff options
Diffstat (limited to '413/CH2/EX2.5/LU_Decomposition.sce')
-rw-r--r-- | 413/CH2/EX2.5/LU_Decomposition.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/413/CH2/EX2.5/LU_Decomposition.sce b/413/CH2/EX2.5/LU_Decomposition.sce new file mode 100644 index 000000000..11afb1bc6 --- /dev/null +++ b/413/CH2/EX2.5/LU_Decomposition.sce @@ -0,0 +1,13 @@ +//LU Decomposition
+clearglobal()
+clc;
+A=[0 2 0 1 0; 2 2 3 2 -2; 4 -3 0 1 -7; 6 1 -6 -5 6]
+[L, U, P]=lu(A)
+printf('Matrix is')
+disp(A)
+printf('L=')
+disp(L)
+printf('U=')
+disp(U)
+printf('P=')
+disp(P)
\ No newline at end of file |