binopdf(x/2,x,0.5) should yield the smallest solution. However, binopdf gets hung up on the input type. Does anyone know why?
the function you try to use belongs to the Statistics Toolbox, on cody it is only allowed to use Matlab alone, without toolboxes.
Read the notes on the right side in this link:
http://www.mathworks.de/matlabcentral/about/cody/#contribute_problems
{The number of cases of OOOOXXXX, OOOXOXXX,...., XXXXOOOO}
x(1/2)^(x),
is equal to
y = 2^-(x)*factorial(x)/(factorial(x/2)*factorial(x/2)).
What is the next step in Conway's Life?
640 Solvers
1052 Solvers
Make an awesome ramp for a tiny motorcycle stuntman
334 Solvers
Number of 1s in a binary string
2834 Solvers
convert matrix to single column
308 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!