Cody

Solution 2068739

Submitted on 25 Dec 2019 by Asif Newaz
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   Pass
inp_matrix = [1,0,0,1,1;0,1,1,0,0;0,0,0,0,0;1,1,1,1,1;1,1,1,1,1]; pct_zero_corr = 40; assert(isequal(zero_stat(inp_matrix),pct_zero_corr))

a = 15 b = 25 z = 40

2   Pass
inp_matrix = diag([1,0,1,1,1]); pct_zero_corr = 84; assert(isequal(zero_stat(inp_matrix),pct_zero_corr))

a = 4 b = 25 z = 84

3   Pass
inp_matrix = [1,0,1,0,0,0,1]'; pct_zero_corr = 57; assert(isequal(zero_stat(inp_matrix),pct_zero_corr))

a = 3 b = 7 z = 57