This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [4 -5 -2 9];
y_correct = [9 2 -5 -4];
assert(isequal(your_fcn_name(x),y_correct))
|
2 | Pass |
%%
x = ones(1,4);
y_correct = [1 -1 1 -1];
assert(isequal(your_fcn_name(x),y_correct))
|
Find the sum of all the numbers of the input vector
31959 Solvers
5833 Solvers
Project Euler: Problem 1, Multiples of 3 and 5
1492 Solvers
Get the length of a given vector
3566 Solvers
251 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!