Statistics Toolbox
  Go to function:
    Search    Help Desk 
unifrnd    Examples

Random numbers from the continuous uniform distribution.

Syntax

Description

R = unifrnd(A,B) generates uniform 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 = unifrnd(A,B,m) generates uniform random numbers with parameters A and B. m is a 1-by-2 vector that contains the row and column dimensions of R.

R = unifrnd(A,B,m,n) generates uniform 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 ]