Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1:5;
y_correct = [3 -3 3 -3 3];
assert(isequal(your_fcn_name(x),y_correct))
|
2 | Pass |
x = 1:6;
y_correct = [7 -7 7 -7 7 -7]/2;
assert(isequal(your_fcn_name(x),y_correct))
|
3 | Pass |
x = 1:-1:-5;
y_correct = -[2 -2 2 -2 2 -2 2];
assert(isequal(your_fcn_name(x),y_correct))
|
Find relatively common elements in matrix rows
865 Solvers
2183 Solvers
Who knows the last digit of pi?
557 Solvers
Rotate input square matrix 90 degrees CCW without rot90
380 Solvers
Reverse the elements of an array
687 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!