I suggest looking at more Cody examples to understand the structure of the problem statement, function definition, and test suite.
Project Euler: Problem 6, Natural numbers, squares and sums.
1034 Solvers
Make a random, non-repeating vector.
3014 Solvers
Rounding off numbers to n decimals
1083 Solvers
621 Solvers
159 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!