lognrnd
Lognormal random numbers
Description
generates an array of lognormal random numbers, where r
= lognrnd(mu
,sigma
,sz1,...,szN
)sz1,...,szN
indicates the size of each dimension.
Examples
Input Arguments
Output Arguments
More About
Alternative Functionality
lognrnd
is a function specific to lognormal distribution. Statistics and Machine Learning Toolbox™ also offers the generic functionrandom
, which supports various probability distributions. To userandom
, create aLognormalDistribution
probability distribution object and pass the object as an input argument or specify the probability distribution name and its parameters. Note that the distribution-specific functionlognrnd
is faster than the generic functionrandom
.To generate random numbers interactively, use
randtool
, a user interface for random number generation.
References
[1] Marsaglia, G., and W. W. Tsang. “A Fast, Easily Implemented Method for Sampling from Decreasing or Symmetric Unimodal Density Functions.” SIAM Journal on Scientific and Statistical Computing. Vol. 5, Number 2, 1984, pp. 349–359.
[2] Evans, M., N. Hastings, and B. Peacock. Statistical Distributions. 2nd ed., Hoboken, NJ: John Wiley & Sons, Inc., 1993.
Extended Capabilities
Version History
Introduced before R2006a