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))
ans =
40
|
2 | Pass |
inp_matrix = diag([1,0,1,1,1]);
pct_zero_corr = 84;
assert(isequal(zero_stat(inp_matrix),pct_zero_corr))
ans =
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))
ans =
57
|
2261 Solvers
The Hitchhiker's Guide to MATLAB
2874 Solvers
452 Solvers
Find Out sum of principal diagonal element of given matrix
194 Solvers
48 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!