binopdf
Binomial probability density function (PDF).
For each element of x, compute the probability density function (PDF) at x of the binomial distribution with parameters n and ps, where n is the number of trials and ps is the probability of success. The size of y is the common size of x, n, and ps. A scalar input functions as a constant matrix of the same size as the other inputs.
Matlab incompatibility: Octave’s binopdf
returns NaN for complex
input values. Matlab 2021b returns values for complex inputs despite the
documentation indicates integer and real value inputs are required.
See also: binocdf, binoinv, binornd, binostat, binotest
Source Code: binopdf