Statistics Toolbox
  Go to function:
    Search    Help Desk 
chi2rnd    Examples

Random numbers from the chi-square (2) distribution.

Syntax

Description

R = chi2rnd(V) generates 2 random numbers with V degrees of freedom. The size of R is the size of V.

R = chi2rnd(V,m) generates 2 random numbers with V degrees of freedom. m is a 1-by-2 vector that contains the row and column dimensions of R.

R = chi2rnd(V,m,n) generates 2 random numbers with V degrees of freedom. The scalars m and n are the row and column dimensions of R.

Examples

Note that the first and third commands are the same but are different from the second command.



[ Previous | Help Desk | Next ]