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)
|
How to find the position of an element in a vector without using the find function
2477 Solvers
412 Solvers
556 Solvers
289 Solvers
2060 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!