lognpdf
Lognormal probability density function
📝Syntax
y = lognpdf(x)
y = lognpdf(x, mu)
y = lognpdf(x, mu, sigma)
📥Input Arguments
Parameter Description
x real scalar or array: values.
mu real scalar or array: mean of logarithmic values. The default is 0.
sigma positive scalar or array: standard deviation of logarithmic values. The default is 1.
📤Output Arguments
Parameter Description
y array: density values.
📄Description

lognpdf evaluates lognormal probability density values element by element.

Scalar parameters are expanded to match array inputs.

💡Examples
x = [0 1 exp(1)];
y = lognpdf(x, 0, 1);
🔗See Also
logncdflogninvlognrnd
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub