why is this incorrect?
You need to insert "function x=oneToTen" as the first line of your function.
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
%%
x_correct = [1 2 3 4 5 6 7 8 9 10];
assert(isequal(oneToTen,x_correct))
Error: Undefined function or variable 'oneToTen'.
|
Project Euler: Problem 6, Natural numbers, squares and sums.
782 Solvers
404 Solvers
205 Solvers
254 Solvers
229 Solvers