This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = -2:2;
y_correct = [0 0 1 1 1];
assert(isequal(HL(x),y_correct))
|
2 | Pass |
x = -3:3;
y_correct = [ 0 0 0 1 1 1 1];
assert(isequal(HL(x),y_correct))
|
381 Solvers
3972 Solvers
Getting the indices from a matrice
360 Solvers
Try 1.5.4: Celsius to Fahrenheit
609 Solvers
2778 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!