Create a vector (name it vet C) that has 12 elements of which the first is 5,
Question:
(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.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: