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)
|
Flip the main diagonal of a matrix
506 Solvers
How many trades represent all the profit?
520 Solvers
Set the array elements whose value is 13 to 0
936 Solvers
248 Solvers
Fix the last element of a cell array
344 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!