Create the following matrix by assigning vectors with constant spacing to the rows (use the linspace command for the third row). Do not type individual elements explicitly.
A =
1.0000 2.0000 3.0000 4.0000 5.0000 6.0000
7.0000 6.0000 5.0000 4.0000 3.0000 2.0000
2.0000 3.1667 4.3333 5.5000 6.6667 9.0000
A(1,:) = 1:6;
A(2,:) = 7:-1:2;
A(3,:) = linspace(2,9,6);
Comments
Leave a comment