Contents Previous Next Subchapters

Generating Random Numbers with Normal Distribution
Syntax normrnd(alphasigmarowscols)
See Also seed , snormal , randperm , unirnd , exprnd

Returns a real or double matrix containing random elements that are normally (Gaussian) distributed with mean value alpha and standard deviation sigma. The value rows is the number of rows and cols is the number of columns in the result. The value sigma must be greater than 0. If the arguments alpha and sigma are double-precision scalars then the matrix returned is double, otherwise the return value is real.