38. Create the following matrix N: N = 0 3 6 9 12 15 18 21 24...

Question:

38. Create the following matrix N:

N =

0 3 6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 51

(It can be done by typing: N=reshape(0:3:51,6,3)'.)

By writing one command and using the colon to address range of elements

(do not type individual elements explicitly), use the matrix N to:

(a) Create a six-element row vector named Ua that contains the first three elements of the first row of N followed by the last three elements of the third row of N.

(b) Create a nine-element column vector named Ub that contains the elements of the first column of N, followed by the elements of the third column of N, followed by the elements of the sixth column of N.

(c) Create a six-element column vector named Uc that contains elements 2, 3, 4, and 5 of the second row of N, followed by elements 2 and 3 of the fifth column of N.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

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