FUNCTION REFERENCE
Probability density (or mass) of a named distribution.
Probability density (or mass) of a named distribution.
Syntax
Y = pdf(name, X, A, B, ...)Same as the family function, e.g. pdf('Normal', X, MU, SIGMA) is normpdf(X, MU, SIGMA). Names are case-insensitive: 'Normal' ('norm'), 'Uniform' ('unif'), 'Exponential' ('exp'), 'Gamma' ('gam'), 'Beta', 'Chisquare' ('chi2'), 'T', 'F', 'Lognormal' ('logn'), 'Weibull' ('wbl'), 'Rayleigh' ('rayl'), 'Extreme Value' ('ev'), 'Binomial' ('bino'), 'Poisson' ('poiss'), 'Geometric' ('geo') and 'Negative Binomial' ('nbin'). An unknown name is an error that lists these.
Example
pdf('Normal', 1, 0, 2)Example
pdf('Poisson', 0:3, 2)Distribution objects from makedist or fitdist are accepted as the first argument; object parameters are supplied by the object.
Differences from MATLAB: parameter confidence intervals and truncated distributions are unsupported.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.