This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
x = 6;
y = 3;
p_correct = 2/3;
assert(isequal(survival(x,y),p_correct))
|
2 | Fail |
x = 15;
y = 5;
p_correct = 3/5;
assert(isequal(survival(x,y),p_correct))
|
3 | Fail |
x = 30;
y = 6;
p_correct = 35/60;
assert(isequal(survival(x,y),p_correct))
|
4 | Fail |
x = 4;
y = 4;
p_correct = 5/8;
assert(isequal(survival(x,y),p_correct))
|
3892 Solvers
Back to basics 12 - Input Arguments
525 Solvers
505 Solvers
191 Solvers
Matlab Basics II - Velocity of a particle
138 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!