Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = magic(5);
y_correct = 25;
assert(isequal(non_zero_a(x),y_correct))
ans =
25
|
2 | Pass |
%%
x = zeros(5);
y_correct = 0;
assert(isequal(non_zero_a(x),y_correct))
ans =
0
|
3 | Pass |
%%
x = eye(12);
y_correct = 12;
assert(isequal(non_zero_a(x),y_correct))
ans =
12
|
5831 Solvers
1598 Solvers
All your base are belong to us
463 Solvers
2980 Solvers
Sum the squares of numbers from 1 to n
163 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!