Contents Previous Next Subchapters

Generating Random Numbers with Gamma Distribution
Syntax gamrnd(alphadisplacementrowscols)
See Also unirnd , normrnd , exprnd

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