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.
826 Solvers
316 Solvers
Back to basics 8 - Matrix Diagonals
792 Solvers
389 Solvers
290 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!