a. aMat= V a 9x9 matrix full of 2's (use 'ones' or 'zeros').
12
1
b. bMat=1
2
01
a 9x9 matrix of all zeros, but with the values 1-9 on the main
to ... 9
diagonal (use 'zeros', 'diag').
CMat=1_{-5}^{11}
0
1
Expert's answer
2021-09-28T06:23:40-0400
clc
%aMat= V a 9x9 matrix full of 2's (use 'ones' or 'zeros').
aMat = randi([0,1], 9,9)
%9x9 matrix of all zeros, but with the values 1-9 on the main
v = [1:9];
bMat = diag(v)
Comments
Leave a comment