Question: 3. Write a script that prompts the user to enter a vector, named vector1, which has at least 6 elements. Create a new vector,

3. Write a script that prompts the user to enter a vector, named vector1, which has at least 6 elements. Create a new vector, named vector2, containing only the elements in the even numbered positions from vector1. For example, if vector1 is [0 12345 6], vector2 should be [1 3 5). This should work for vectors of any length. So ive by using Matlaland vun tue solution
Step by Step Solution
3.54 Rating (151 Votes )
There are 3 Steps involved in it
1 vector1 inputInput your vector vector2 vector122end 2 ... View full answer
Get step-by-step solutions from verified subject matter experts
