Statistics Toolbox    
ncx2rnd

Random matrices from the noncentral chi-square distribution

Syntax

Description

R = ncx2rnd(V,DELTA) returns a matrix of random numbers chosen from the non-central chi-square distribution with parameters V and DELTA. Vector or matrix inputs for V and DELTA must have the same size, which is also the size of R. A scalar input for V or DELTA is expanded to a constant matrix with the same dimensions as the other input.

R = ncx2rnd(V,DELTA,m) returns a matrix of random numbers with parameters V and DELTA, where m is a 1-by-2 vector that contains the row and column dimensions of R.

R = ncx2rnd(V,DELTA,m,n) generates random numbers with parameters V and DELTA, where scalars m and n are the row and column dimensions of R.

Example

References

[1]  Evans, M., N. Hastings, and B. Peacock, Statistical Distributions, Second Edition, John Wiley and Sons, 1993. p. 50-52.

[2]  Johnson, N., and S. Kotz, Distributions in Statistics: Continuous Univariate Distributions-2, John Wiley and Sons, 1970. pp. 130-148.

See Also
ncx2cdf, ncx2inv, ncx2pdf, ncx2stat


  ncx2pdf ncx2stat