lognpdf

Compute lognormal distribution probability density function values.

Syntax

d=lognpdf(x)

d=lognpdf(x,mu,sigma)

Inputs

x
Values of the distribution random variable.
Type: double
Dimension: scalar | vector | matrix
mu
Mean (default = 0).
Type: double
Dimension: scalar | vector | matrix
sigma
Standard Deviation (default = 1).
Type: double
Dimension: scalar | vector | matrix

Outputs

d
Probability density values.

Examples

Single value lognpdf example:
x = 4;
mu = 5;
sigma = 3;
d = lognpdf(x,mu,sigma)
d = 0.0160935312
Vector lognpdf example:
x = [1:1:9];
mu = 5;
sigma = 3;
d = lognpdf(x,mu,sigma)
d = [Matrix] 1 x 9
0.03316  0.02373  0.01903  0.01609  0.01404  0.01251  0.01131  0.01035  0.00955