The test suite should include a two element input also, for the sake of completion!
Why are several y_correct vectors not column vector as required by the problem?
The leading solution without the regexp hack: 19.
1324 Solvers
Getting the indices from a vector
3767 Solvers
284 Solvers
The Answer to Life, the Universe, and Everything
391 Solvers
191 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!