clc;
close all;
clear all;
A=[-2 1 0;1 -2 1;0 1 -2];
%%%%%%%%%%%%%%question 1%%%%%%%%%%%%%
fprintf('determinant of A=%f\n',det(A));
fprintf('inverse of A=\n');
%%%%%%%%%%%%%%question 2%%%%%%%%%%%%%
fprintf('inverse of A inverse\n');
A=inv(A)
fprintf('original A\n')
A=inv(A)
%%%%%%%%%%%%%%question 3%%%%%%%%%%%%%
fprintf('random matrix A\n');
A=round(40*(rand(5)-0.5))
fprintf('random matrix B\n');
B=round(40*(rand(5)-0.5))
det(A)
det(B)
det(3*A)
3*det(A)
3^3*det(A)
det(A')
det(B')
det(A+B)
det(A)+det(B)
det(A*B)
det(B*A)
det(A'*B')
det(B'*A')
det(inv(A))
1/det(A)
det(inv(A)*B)
det(A)/det(B)
det(B)/det(A)
det(inv(B)*A*B)
det(inv(B)*B)
det(2*inv(B)*B)
just copy this code and paste into a new script and run
you will get all values of table mention above![A I-2 1 0:1-2 1:0 1 -2] 몽몽몽몽몽몽몽몽몽몽몽몽용용ques tion 1몽몽몽몽몽몽몽몽몽몽몽몽용 fprintf ( determinant of A=%f\n, det (A) ) ; fprintf (invers](http://img.homeworklib.com/questions/f2873650-ab7b-11ea-9958-dd792c822d83.png?x-oss-process=image/resize,w_560)

serially on command window of
matlab.
Exercice 2. Let A given by -(iii) 21 A 1 -2 01 -2 1. Compate det(...