FUNCTION REFERENCE

lognpdf

Lognormal probability density function.

Lognormal probability density function.

Syntax

Y = lognpdf(X, MU, SIGMA)

Evaluates the probability density of the lognormal distribution with MU (default 0) and SIGMA > 0 (default 1), the mean and standard deviation of log(X) at X. Every argument may be a scalar or an array; scalars expand to the size of the others, and arrays must have the same size. Parameters outside their domain give NaN; NaN inputs give NaN.

Example

lognpdf(2, 0, 1)

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.