Statistics Toolbox
  Go to function:
    Search    Help Desk 
normrnd    Examples

Random numbers from the normal distribution.

Syntax

Description

R = normrnd(MU,SIGMA) generates normal random numbers with mean, MU, and standard deviation, SIGMA . The size of R is the common size of MU and SIGMA if both are matrices. If either parameter is a scalar, the size of R is the size of the other parameter.

R = normrnd(MU,SIGMA,m) generates normal random numbers with parameters MU and SIGMA. 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. The scalars m and n are the row and column dimensions of R.

Examples



[ Previous | Help Desk | Next ]