Please add more cases to the test suite, or else it is trivial to solve this problem.
Rafael is right and since you made this into a badge problem it is even more essential to fix this
Make the vector [1 2 3 4 5 6 7 8 9 10]
36195 Solvers
Select every other element of a vector
20811 Solvers
1344 Solvers
Create a Multiplication table matrix...
285 Solvers
250 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!