Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = 1; b=2;
y_correct = [1 1.25 1.5 1.75 2];
assert(isequal(split_to_five(a,b),y_correct))
y =
1.0000 1.2500 1.5000 1.7500 2.0000
|
2 | Pass |
a = 20; b=30;
y_correct = [20 22.5 25 27.5 30];
assert(isequal(split_to_five(a,b),y_correct))
y =
20.0000 22.5000 25.0000 27.5000 30.0000
|
3 | Pass |
a = 30; b=-20;
y_correct = [30 17.5 5 -7.5 -20];
assert(isequal(split_to_five(a,b),y_correct))
y =
30.0000 17.5000 5.0000 -7.5000 -20.0000
|
Back to basics 3 - Temp Directory
328 Solvers
401 Solvers
The Answer to Life, the Universe, and Everything
383 Solvers
217 Solvers
Write a code that will follow the equation y = x * (x + x) * x.
210 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!