Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 10;
flagSame = isequal(makeRandomOrdering(n), makeRandomOrdering(n));
flagAllUsed = isequal([1:n],sort(makeRandomOrdering(n)));
assert(~flagSame & flagAllUsed)
vec =
1 4 2 9 3 8 5 7 10 6
vec =
9 5 1 6 4 8 10 2 3 7
vec =
5 4 3 1 7 9 6 8 10 2
|
Determine whether a vector is monotonically increasing
11925 Solvers
1163 Solvers
Find the largest value in the 3D matrix
1056 Solvers
509 Solvers
286 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!