clc
clear

A = [1 2 3 4 5 6 7 8 9]
A = reshape(A, 3, 3)
B = A(1:2, 2:3)
C = A .^ (-2)
I = eye(3)
D = A + I
g = 3
E = A * g
disp('Array B:')
disp(B);
disp('Array C:')
disp(C);
disp('Array D:')
disp(D);
disp('Array E:')
disp(E)

Embed on website

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