Statistics Toolbox
  Go to function:
    Search    Help Desk 
gamrnd    Examples

Random numbers from the gamma distribution.

Syntax

Description

R = gamrnd(A,B) generates gamma random numbers with parameters A and B. The size of R is the common size of A and B if both are matrices. If either parameter is a scalar, the size of R is the size of the other parameter.

R = gamrnd(A,B,m) generates gamma random numbers with parameters A and B. m is a 1-by-2 vector that contains the row and column dimensions of R.

R = gamrnd(A,B,m,n) generates gamma random numbers with parameters A and B. The scalars m and n are the row and column dimensions of R.

Examples



[ Previous | Help Desk | Next ]