how to plot the cdf of a bernoulli using matlab
6 visualizzazioni (ultimi 30 giorni)
Greig il 1 Mar 2015
A Bernoulli distribution is a Binomial distribution where the number of trials is 1, so you should be able to use
binocdf(x, 1, p)
where x is the number of successes (0 or 1), and p is the probability of success.