create a 3 x 3 matrix with all ones. create a 8 x 1 matrix with all zeros. create a 5 x 2 matrix with all elements equal to 0.37. in matlab

main.m
% Creating a 3x3 matrix with all ones
matrix1 = ones(3);

% Creating an 8x1 matrix with all zeros
matrix2 = zeros(8, 1);

% Creating a 5x2 matrix with all elements equal to 0.37
matrix3 = ones(5, 2) * 0.37;
207 chars
9 lines

gistlibby LogSnag