Statistics Toolbox    
normrnd

Random numbers from the normal distribution

Syntax

Description

R = normrnd(MU,SIGMA) generates normal random numbers with mean MU and standard deviation SIGMA. Vector or matrix inputs for MU and SIGMA must have the same size, which is also the size of R. A scalar input for MU or SIGMA is expanded to a constant matrix with the same dimensions as the other input.

R = normrnd(MU,SIGMA,m) generates normal random numbers with parameters MU and SIGMA, where m is a 1-by-2 vector that contains the row and column dimensions of R.

R = normrnd(MU,SIGMA,m,n) generates normal random numbers with parameters MU and SIGMA, where scalars m and n are the row and column dimensions of R.

Examples

See Also

normfit, normfit, norminv, normpdf, normplot, normspec, normstat


  normplot normspec