Contents Previous Next Subchapters

Generating Random Numbers with Log Normal Distribution
Syntax lognrnd(alphasigmadisplacementrowscols)
See Also normrnd , exprnd , seed , snormal , randperm

Returns a real or double matrix containing random elements that are lognormally distributed with average distribution of alpha, and standard deviation sigma with displacement displacement, where rows is the number of rows and cols is the number of columns in the result. The value of sigma must be greater than 0. If the argument alpha is a double then the matrix returned is double, otherwise the return value is real.