This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [1 2 3 4];
y_correct = [-1 -2 -3 -4];
assert(isequal(your_fcn_name(x),y_correct))
y =
-1 -2 -3 -4
|
middleAsColumn: Return all but first and last element as a column vector
387 Solvers
Determine Whether an array is empty
646 Solvers
The sum of the numbers in the vector
426 Solvers
320 Solvers
343 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!