-
3 Comments
The leading solution (solution 103932) is wrong and doesn't work. The error is that the output argument "ans" is not assigned.
@Norbert, this trick worked in Cody before, now it doesn't. I wrote trick, cause it was a way to have a little bit lower Cody size. It was questioned why it's not banned, because it favours bad programming practices, so changes were made.
@Norbert Marwan
have to change return argument 'y' to 'ans'.
Suggested Problems
-
13587 Solvers
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15629 Solvers
-
Reverse the Words (not letters) of a String
452 Solvers
-
Find a subset that divides the vector into equal halves
391 Solvers
-
07 - Common functions and indexing 6
454 Solvers
More from this Author100
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!