A = [1 -2 3; 4 5 -6; -7 8 9]; % a. Extract rows 2 and 3, columns 1 and 2 B = A(2:3, 1:2); % b. Raise each element of A to the -2 power C = A.^(-2); % c. Add the identity matrix to B I = eye(2); D = B + I; % d. Multiply the first column by the first row E = A(:,1) * A(1,:); disp(A) disp(B) disp(C) disp(D) disp(E)
To embed this project on your website, copy the following code and paste it into your website's HTML: