Show That Matrix A Is Singular
Show That Matrix A Is Singular
A. Using MATLAB commands compute the following expressions if possible. Write the MATLAB
SYNTAX you used and MATLAB out put on the space provided
A= [2,3,1;3,3,1;2,4,1] A =
2 3 1
3 3 1
2 4 1
B=[-1;1;-2] B =
-1
1
-2
C=
-1.0000 1.0000 -0.0000
C=inv(A)
-1.0000 0 1.0000
6.0000 -2.0000 -3.0000
b. Gaussian Elimination
z=rref([A B]) z =
1 0 0 2
0 1 0 -1
0 0 1 -2
c. LU- Factorization
[L U P]=lu(A) L =
1.0000 0 0
0.6667 1.0000 0
0.6667 0.5000 1.0000
U =
3.0000 3.0000 1.0000
0 2.0000 0.3333
0 0 0.1667
P =
0 1 0
0 0 1
1 0 0
y=rref([P*L B]) y =
1.0000 0 0 -2.0000
0 1.0000 0 0.3333
0 0 1.0000 2.1667
x=rref([U y]) x =