I suggest looking at more Cody examples to understand the structure of the problem statement, function definition, and test suite.
Which values occur exactly three times?
3839 Solvers
2268 Solvers
508 Solvers
Flip the main diagonal of a matrix
511 Solvers
Remove the two elements next to NaN value
419 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!