Question: Code using matlab Problem 3: (10 Points) Create a function called OddElements. This function will accept any size vector as an input and will return

Code using matlab
Problem 3: (10 Points) Create a function called OddElements. This function will accept any size vector as an input and will return a vector as an output that includes all the odd- indexed elements (1st,3"d,5th. element) of the input vector Examples: If input is x-[1 3 243 5], output y is [1 2 3] (1, 3rd and 5th element) If input is x- [5 93 220 -1], output y is [5 3 2-1]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
