Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 5;
assert(isequal(unique(rand_plusminus1(x)),[-1;1]))
|
2 | Pass |
x = 1;
assert(isequal(abs(rand_plusminus1(x)),1))
|
3 | Pass |
x = 0;
assert(isequal(rand_plusminus1(x),[]))
|
4 | Pass |
x = 999;
assert(isequal(unique(rand_plusminus1(x)),[-1;1]))
|
Least common multiple of many numbers
189 Solvers
228 Solvers
Back to basics 8 - Matrix Diagonals
781 Solvers
Rotate input square matrix 90 degrees CCW without rot90
380 Solvers
Returning a "greater than" vector
188 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!