Answer to Question #295986 in MatLAB for Ankit Kotia

Question #295986

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


1
Expert's answer
2022-02-10T02:49:45-0500
A(1,:) = 1:6;
A(2,:) = 7:-1:2;
A(3,:) = linspace(2,9,6);

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS