22. Create two row vectors vD=20:4:44 and vE=50:3:71. Then, create the following new vectors by assigning elements

Question:

22. Create two row vectors vD=20:4:44 and vE=50:3:71. Then, create the following new vectors by assigning elements of vD and vE to the new vectors:

(a) A vector (name it vDE) that contains the 2nd through the 5th elements of vD and the 4th through 7th elements of vE; i.e., vDE = 24 28 32 36 59 62 65 68.

(b) A vector (name it vED) that contains elements 6, 5, 4, 3, and 2 of vE and elements 4, 3, 2, and 1 of vD; i.e., vED = 65 62 59 56 53 32 28 24 20.

In both parts use vectors to address the elements of vD and vE that are assigned to vDE and vED, respectively. Do not enter the elements of the vectors explicitly.

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

Step by Step Answer:

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