Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 5;
assert(isequal(unique(rand_plusminus1(x)),[-1;1]))
ans =
[]
|
2 | Pass |
x = 1;
assert(isequal(abs(rand_plusminus1(x)),1))
ans =
[]
|
3 | Pass |
x = 0;
assert(isequal(rand_plusminus1(x),[]))
ans =
[]
|
4 | Pass |
x = 999;
assert(isequal(unique(rand_plusminus1(x)),[-1;1]))
ans =
[]
|
What is the distance from point P(x,y) to the line Ax + By + C = 0?
209 Solvers
357 Solvers
261 Solvers
07 - Common functions and indexing 4
258 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
230 Solvers