Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n=10
x = randperm(n);
y_correct = [2 4 6 8 10];
assert(isequal(rmv_srt(n),y_correct))
n =
10
y =
3 10 6 5 4 7 1 8 2 9
|
2 | Pass |
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
y =
12 18 5 22 19 9 20 6 24 17 3 1 4 11 10 14 15 13 21 7 25 23 8 2 16
|
316 Solvers
Create matrix of replicated elements
321 Solvers
2143 Solvers
204 Solvers
Find Out sum of principal diagonal element of given matrix
194 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!