| Statistics Toolbox | Search  Help Desk |
| ncx2rnd | Examples See Also |
Random matrices from the noncentral chi-square distribution.
Syntax
R = ncx2rnd(V,DELTA) R = ncx2rnd(V,DELTA,m) R = ncx2rnd(V,DELTA,m,n)
Description
R = ncx2rnd(V,DELTA) returns a matrix of random numbers chosen from the non-central chisquare distribution with parameters V and DELTA. The size of R is the common size of V and DELTA if both are matrices. If either parameter is a scalar, the size of R is the size of the other parameter.
R = ncx2rnd(V,DELTA,m) returns a matrix of random numbers with parameters V and DELTA. 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. The scalars m and n are the row and column dimensions of R.
Example
ncx2rnd(4,2,6,3)
ans =
6.8552 5.9650 11.2961
5.2631 4.2640 5.9495
9.1939 6.7162 3.8315
10.3100 4.4828 7.1653
2.1142 1.9826 4.6400
3.8852 5.3999 0.9282
References
See Also
ncx2cdf,ncx2inv,ncx2pdf,ncx2stat