Create two row vectors: a = [3 9 -0.5 3 6. 1 5. -0.8 4] b =

Question:

Create two row vectors:
a = [3 9 -0.5 3 6. 1 5. -0.8 4]
b = [12 -0.8 6 2 5 3 -7.4]
(a) Use the two vectors in a MATLAB command to create a 3 × 4 matrix such that the first row consists of elements 3 through 6 of vector a, the second row consists of elements 4 through 7 of vector a, and the third row consists of elements 2 through 5 of vector b.
(b) Use the two vectors in a MATLAB command to create a 6 × 2 matrix such that the first column consists of elements 2 through 7 of vector a, and the second column consists of elements 1 through 3 and 5 through 7 of vector b.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: