Question: Without iterations or conditionals MATLAB Function Name: deleteEvenIndices Inputs: 1. [1xN Double] A vector Output: 1. [ 1xN/2] Modified vector Description: - Write a function
Without iterations or conditionals MATLAB
![Without iterations or conditionals MATLAB Function Name: deleteEvenIndices Inputs: 1. [1xN Double]](https://s3.amazonaws.com/si.experts.images/answers/2024/09/66e01ad17c5d9_96166e01ad118ef8.jpg)
Function Name: deleteEvenIndices Inputs: 1. [1xN Double] A vector Output: 1. [ 1xN/2] Modified vector Description: - Write a function called deleteEvenIndices that takes in a vector and deletes the numbers at the even indices and outputs the new vector. Examples: ans1 = deleteEvenIndices ([234]) >> ans1 =[24] an2 = deleteEvenIndices ([54321]) >> ans2 = [531] ans3 = deleteEvenIndices ([00000]) > ans3 =[000]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
