clc
clear
disp('Zhoria Renfus')

A=[ 1 -2 3; 4 5 6; -7 8 9]

% a. Extract the first and second rows,
%    and the second and third columns
B = A(1:2, 2:3);

% b. Raise each element of B to the (-2) power
C = B .^ (-2);

% c. Create D = A + I, where I is the identity matrix
I = eye(3);
D = A + I;

% d. Multiply the first row by the first column
g = A(1,:) * A(:,1);

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: