Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 8 9 2];
y_correct = [3 10 11 4];
assert(isequal(your_fcn_name(x),y_correct))
ans =
3 10 11 4
|
2 | Pass |
x = [1 11 19 21];
y_correct = [3 13 21 23];
assert(isequal(your_fcn_name(x),y_correct))%%
x = [30 63 12 2];
y_correct = [32 65 14 4];
assert(isequal(your_fcn_name(x),y_correct))
ans =
3 13 21 23
ans =
32 65 14 4
|
Find the sum of all the numbers of the input vector
31955 Solvers
1263 Solvers
The Hitchhiker's Guide to MATLAB
2874 Solvers
248 Solvers
147 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!