You are on page 1of 7

NAME: ____UMALI, JAY JAY J.

___ Section: ___CE21S2____

MATLAB ACTIVITY 4 – Determinant Using MATLAB

A. Use the det () built-in function to find the determinants of the following matrices. Write the MATLAB SYNTAX
you used and MATLAB out put on the space provided

−1 1 1
A=|−1 −1 1 |
1. 1 1 −1 det A = ____0____

7 6 5 4
A=|6 5 4 3|
5 4 3 2
2. 4 3 2 1 det A =____0____
1 2 0

3.
B=3 (eye (¿( A¿)− A))
, where
[ ]
A= 3 4 0
0 0 5 B= and

det B=

A= 1 2
4.
C=5(eye( ¿(A ¿)− A))2
, where
[ ]
3 4 C= and

det C=

0 1 1

5.
D= A T A
, where
[ ]
A= 0 1 0
1 0 1 D= and det D=__1__
B. By using Cramer’s Rule, determine the solution to the following systems of linear equations. Write the
MATLAB SYNTAX you used and MATLAB out put on the space provided

ìï 2 x1 + 4 x2 + 6 x3 = 2
ïï
ïí x + 2 x = 0
ïï 1 3

ïïî 2 x1 + 3x2 - x3 = 5

You might also like