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
17547 Solvers
Omit columns averages from a matrix
530 Solvers
Create a square matrix of multiples
386 Solvers
Get the length of a given vector
3735 Solvers
332 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!