Statistics Toolbox | ![]() ![]() |
Lognormal probability density function (pdf).
Syntax
Y = lognpdf(X,MU,SIGMA)
Description
computes the lognormal cdf at each of the values in Y = logncdf(X,MU,SIGMA)
X
using the corresponding means in MU
and standard deviations in SIGMA
. Vector or matrix inputs for X
, MU
, and SIGMA
must have the same size, which is also the size of Y
. A scalar input for X
, MU
, or SIGMA
is expanded to a constant matrix with the same dimensions as the other inputs
Example
x = (0:0.02:10); y = lognpdf(x,0,1); plot(x,y); grid; xlabel('x'); ylabel('p')
Reference
Mood, A. M., F.A. Graybill, and D.C. Boes, Introduction to the Theory of Statistics, Third Edition, McGraw-Hill 1974 p. 540-541.
See Also
logncdf
, logninv
, lognrnd
, lognstat
, pdf
![]() | logninv | lognrnd | ![]() |