Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 7;
y_correct = 354;
assert(isequal(your_fcn_name(x),y_correct))
ans =
354
|
2 | Pass |
%%
x = 12;
y_correct = 1739;
assert(isequal(your_fcn_name(x),y_correct))
ans =
1739
|
3 | Pass |
%%
x = 21;
y_correct = 9272;
assert(isequal(your_fcn_name(x),y_correct))
ans =
9272
|
4 | Pass |
%%
x = 35;
y_correct = 42886;
assert(isequal(your_fcn_name(x),y_correct))
ans =
42886
|
The Hitchhiker's Guide to MATLAB
2874 Solvers
192 Solvers
Detect a number and replace with two NaN's
178 Solvers
420 Solvers
360 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!