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)
|
Find the alphabetic word product
2321 Solvers
1800 Solvers
556 Solvers
746 Solvers
Vector of numbers divisible by 3
126 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!