Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
n=10
x = randperm(n);
y_correct = [2 4 6 8 10];
assert(isequal(rmv_srt(n),y_correct))
n =
10
x =
1×0 empty double row vector
|
2 | Fail |
n=25
x = randperm(n);
y_correct = [2 4 6 8 10 12 14 16 18 20 22 24];
assert(isequal(rmv_srt(n),y_correct))
n =
25
x =
25
|
5703 Solvers
6281 Solvers
495 Solvers
Back to basics 21 - Matrix replicating
1052 Solvers
Matlab Basics II - Create a vector with a repeated entry
182 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!