More test cases are needed to prevent answers like this.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 1;
y_correct = 1;
assert(isequal(your_fcn_name(x),y_correct))
ans =
1
|
2 | Pass |
%%
x = 1.5;
y_correct = 0;
assert(isequal(your_fcn_name(x),y_correct))
ans =
0
|
Get the length of a given vector
3560 Solvers
232 Solvers
Fahrenheit to Celsius converter
358 Solvers
241 Solvers
445 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!