Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
m = magic(6);
m(m>=20) = 0;
user = MyFunc();
assert(isequal(m,user))
ans =
35 1 6 26 19 24
3 32 7 21 23 25
31 9 2 22 27 20
8 28 33 17 10 15
30 5 34 12 14 16
4 36 29 13 18 11
ans =
0 1 6 0 19 0
3 0 7 0 0 0
0 9 2 0 0 0
8 0 0 17 10 15
0 5 0 12 14 16
4 0 0 13 18 11
|
9873 Solvers
Return a list sorted by number of occurrences
1504 Solvers
Make a random, non-repeating vector.
2802 Solvers
321 Solvers
260 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!