Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
n = 10;
m = 4;
y = random_binary(n,m);
assert(islogical(y) && isequal(sum(y),m) && abs(std(diff(y)>0)-0.45)<0.2)
|
2 | Pass |
%%
n = 1000;
m = 500;
y = random_binary(n,m);
assert(islogical(y) && isequal(sum(y),m) && abs(std(diff(y)>0)-0.45)<0.05)
|
3 | Pass |
%%
n = 500;
m = 20;
y = random_binary(n,m);
assert(islogical(y) && isequal(sum(y),m) && abs(std(diff(y)>0)-0.18)<0.05)
|
"Low : High - Low : High - Turn around " -- Create a subindices vector
320 Solvers
Calculate the height of an object dropped from the sky
165 Solvers
484 Solvers
343 Solvers
2314 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!