Question: Create a vector (name it vet C) that has 12 elements of which the first is 5, the increment is 4 and the last element

Create a vector (name it vet C) that has 12 elements of which the first is 5, the increment is 4 and the last element is 49. Then, by assigning elements of vctC to new vectors, create the following two vectors:
(a) A vector (name it Codd) that contains all the elements with odd index of vctC; i.e., Codd = 5 13 21 ... 45 .
(b) A vector (name it Ceven) that contains all the elements with even index of vct; i.e, Ceven = 9 17 25 ... 49.
In both parts use vectors of odd and even numbers for the index of Codd and Ceven, respectively. Do not type the elements of the vectors explicitly.

Step by Step Solution

3.41 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Script file clear clc vctC5449 di... View full answer

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

Document Format (1 attachment)

Word file Icon

652-B-F-F-M (552).docx

120 KBs Word File

Students Have Also Explored These Related Finance Questions!