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:

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.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Systems Analysis And Design Using MATLAB Questions!