% Matrix Manipulations
%
disp(' ')
disp('Example 1 matrix')
A=[1 1 0 3;2 1 -1 1;3 -1 -1 2; -1 2 3 -1]
disp('Get LU Factorization: [low, upper] = lufac(A)')
[low, upper] = lufac(A)
disp('Get LU Factorization: [L,U,P] = LU(X)')
[L,U,P] = lu(A)
disp('Enter B and solve')
B=[8 7 14 -7]'
disp('Need forward substitution to solve Ly=b')
y=LF(low,B)
disp('Column Oriented Solution')
LTriSol(low,B)'
disp('Need backward substitution to solve Ux=y')
x=UB(upper,y)
