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.
1425 Solvers
Matrix indexing with two vectors of indices
485 Solvers
Given a window, how many subsets of a vector sum positive
743 Solvers
530 Solvers
321 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!