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
|
Compute a dot product of two vectors x and y
750 Solvers
260 Solvers
Element by element multiplication of two vectors
269 Solvers
177 Solvers
300 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!