Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 0.63;
y_correct = [1 0 1 0 1 1];
assert(isequal(coins(x),y_correct))
|
2 | Pass |
x = 0.49;
y_correct = [0 2 0 1 2 0];
assert(isequal(coins(x),y_correct))
|
Find all elements less than 0 or greater than 10 and replace them with NaN
13046 Solvers
4106 Solvers
831 Solvers
3967 Solvers
Project Euler: Problem 6, Natural numbers, squares and sums.
1018 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!