Ce21s5 - Tenorio - Matlab Activity - 4-2
Ce21s5 - Tenorio - Matlab Activity - 4-2
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. ( 3 points each)
ans =
7 6 5 4 A= Matrix A
A=[7 6 5 4;6 5 4 3;5 4
6 5 4 3
2. A= 3 2;4 3 2 1] 7 6 5 4
5 4 3 2 6 5 4 3
4 3 2 1 5 4 3 2 0
4 3 2 1
det(A)
ans =
0 -6
0
-9 -9
0
0 0
-12
ans =
648
ans =
900
1 0
1
0 2
1
1 1
2
ans =
B. Use MATLAB SYNTAX solve the given problems below. Write the MATLAB syntax you use and the MATLAB
output in the space provided. ( 5 points each)
-6
A=[60 0 0 1; 0 60 0 1; 0 0 60 1; 0 0 0 1]; A =
A=1/6*det(A)
36000
3. Mr. Cruz would like to buy a lot however, his broker gave the dimension of the lot using the vertices (0, 4), (0, -2) (20, 4) and
(10, -2). What would be the total area of the lot that Mr. Cruz will be buying?
0 4 1
20 4 1
10 -2 1
1/2*(det(A)) ans =
30
-1/2*(det(B)) ans =
60
ans =
[1/2*(det(A))+(-1/2*(det(B)))]
90
Command History
Honor Pledge:
“I affirm that I shall not give or receive any unauthorized help on this assignment and that all work is my own”