This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [1 2 4 6 0
9 8 0 0 0];
y_correct = [1 1 1 1 0
1 1 0 0 0];
assert(isequal(your_fcn_name(x),y_correct))
|
2 | Pass |
%%
x = [-1 2 NaN 6
3 7 0 0 ];
y_correct = [1 1 NaN 1
1 1 0 0 ];
assert(isequaln(your_fcn_name(x),y_correct))
|
2401 Solvers
Flag largest magnitude swings as they occur
582 Solvers
Getting the indices from a matrice
360 Solvers
250 Solvers
224 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!