Contents Previous Next Subchapters

Generating Random Numbers with Laplace Distribution
Syntax laplacernd(alpharowscols)
See Also seed , snormal , randperm , unirnd , normrnd

Description
Returns a real or double matrix containing random elements that are Laplace distributed with mean value (or average) alpha, where rows is the number of rows and cols is the number of columns in the result. If the argument alpha is a double then the matrix returned is double, otherwise the return value is real.