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))
|
2 | Pass |
%%
x = [10 -1;2 8];
y_correct = [-10 1;-2 -8];
assert(isequal(your_fcn_name(x),y_correct))
|
27999 Solvers
Number of 1s in the Binary Representation of a Number
356 Solvers
Who knows the last digit of pi?
557 Solvers
Magic is simple (for beginners)
2754 Solvers
Replace every 3rd element in a vector with 4
170 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!