Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 15;
y_correct = 1;
assert(isequal(your_fcn_name(x),y_correct))
ans =
1
|
2 | Pass |
x = 15.25;
y_correct = 0;
assert(isequal(your_fcn_name(x),y_correct))
ans =
0
|
3 | Pass |
x = 10;
y_correct = 1;
assert(isequal(your_fcn_name(x),y_correct))
ans =
1
|
Return the largest number that is adjacent to a zero
3751 Solvers
819 Solvers
1763 Solvers
250 Solvers
384 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!