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))
|
2 | Pass |
%%
a = 20; b=30;
y_correct = [20 22.5 25 27.5 30];
assert(isequal(split_to_five(a,b),y_correct))
|
3 | Pass |
%%
a = 30; b=-20;
y_correct = [30 17.5 5 -7.5 -20];
assert(isequal(split_to_five(a,b),y_correct))
|
Find the sum of all the numbers of the input vector
31940 Solvers
Back to basics 4 - Search Path
321 Solvers
489 Solvers
Matlab Basics - Absolute Value
360 Solvers
Matlab Basics II - Unit Conversion
119 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!