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)
|
Find the sum of the elements in the "second" diagonal
994 Solvers
Duplicate each element of a vector.
518 Solvers
366 Solvers
407 Solvers
321 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!