Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

MATLAB QUESTION *I would greatly appreciate it if you can give me the matlab cod

ID: 3593208 • Letter: M

Question

MATLAB QUESTION

*I would greatly appreciate it if you can give me the matlab codes. This is for my intro to linear algebra course. * thank you :)

2. (Use format rat) (a) Use MATLAB to compute the determinants of the following two matrices. 590 89-2 0 -1 0 18 -10 0-5 17 1 20-21 -5 17B2 1 B=10 101 A= 2 0 1 1 (b) The determinant of A could have been computed easily without MATLAB. What general fact could have been used to do this? (c) Use MATLAB to compute the matrix C- AB and also det (C). (d) The determinant of C could have been determined without having MATLAB compute det (C) What general fact could have been used to do this?

Explanation / Answer

Matlab code

format rat

A = [
5 90 89 -2;
0 -1 0 18;
0 0 -5 17;
0 0 0 1
]

B = [
1 2 0 -2;
3 -1 2 1;
0 1 0 1;
2 0 1 1
];
  
detA = det(A)

C = A*B

detC = det(C)

Sample output

As we can see determinant of A is easy to compute as many of its entry are 0

Same goes for C

(det(C) = det(A)*det(B)