Function Reference: ncx2rnd

statistics: r = ncx2rnd (df, delta)
statistics: r = ncx2rnd (df, delta, rows, cols, …)
statistics: r = ncx2rnd (df, delta, [sz])

Random arrays from the non-central chi-square distribution.

r = ncx2rnd (df, delta) returns an array of random numbers chosen from the non-central chi-square distribution with df degrees of freedom and noncentrality parameter delta. The size of r is the common size of df and delta. A scalar input functions as a constant matrix of the same size as the other input.

When called with a single size argument, return a square matrix with the dimension specified. When called with more than one scalar argument the first two arguments are taken as the number of rows and columns and any further arguments specify additional matrix dimensions. The size may also be specified with a vector of dimensions sz.

See also: ncx2cdf, ncx2inv, ncx2pdf, ncx2stat

Source Code: ncx2rnd