y = binopdf(x, n, p)
| Parameter | Description |
|---|---|
| x | real numeric array. |
| n | nonnegative integer number of trials. |
| p | success probability in the range [0,1]. |
| Parameter | Description |
|---|---|
| y | probability mass values. |
binopdf computes binomial probability mass values. Scalar inputs are expanded to match array inputs.
x = 0:10;
y = binopdf(x, 10, 0.4);
| Version | Description |
|---|---|
| 2.0.0 | initial version |