Cody

Solution 1685439

Submitted on 3 Dec 2018
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
x = magic(5); y_correct = 25; assert(isequal(non_zero_a(x),y_correct))

Output argument "y" (and maybe others) not assigned during call to "non_zero_a". Error in Test1 (line 3) assert(isequal(non_zero_a(x),y_correct))

2   Fail
x = zeros(5); y_correct = 0; assert(isequal(non_zero_a(x),y_correct))

Output argument "y" (and maybe others) not assigned during call to "non_zero_a". Error in Test2 (line 3) assert(isequal(non_zero_a(x),y_correct))

3   Fail
x = eye(12); y_correct = 12; assert(isequal(non_zero_a(x),y_correct))

Output argument "y" (and maybe others) not assigned during call to "non_zero_a". Error in Test3 (line 3) assert(isequal(non_zero_a(x),y_correct))