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.
1374 Solvers
Project Euler: Problem 1, Multiples of 3 and 5
1522 Solvers
Longest run of consecutive numbers
1795 Solvers
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
236 Solvers
Is this is a Tic Tac Toe X Win?
441 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!