Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
m = magic(6);
m(m>=20) = 0;
user = MyFunc();
assert(isequal(m,user))
m =
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
|
2486 Solvers
Sum all integers from 1 to 2^n
8420 Solvers
Sum of diagonal of a square matrix
1327 Solvers
Given a 4x4 matrix, swap the two middle columns
516 Solvers
249 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!