Statistics Toolbox | ![]() ![]() |
Random matrices from noncentral T distribution.
Syntax
R = nctrnd(V,DELTA) R = nctrnd(V,DELTA,m) R = nctrnd(V,DELTA,m,n)
Description
returns a matrix of random numbers chosen from the noncentral T distribution with parameters R = nctrnd(V,DELTA)
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.
returns a matrix of random numbers with parameters R = nctrnd(V,DELTA,m)
V
and DELTA
, where m is a 1-by-2 vector that contains the row and column dimensions of R.
generates random numbers with parameters R = nctrnd(V,DELTA,m
,n)
V
and DELTA
, where scalars m and n are the row and column dimensions of R.
Example
nctrnd(10,1,5,1) ans = 1.6576 1.0617 1.4491 0.2930 3.6297
References
Evans, M., N. Hastings, and B. Peacock, Statistical Distributions, Second Edition, John Wiley and Sons, 1993. p. 147-148.
Johnson, N., and S. Kotz, Distributions in Statistics: Continuous Univariate Distributions-2, John Wiley and Sons, 1970. pp. 201-219.
See Also
nctcdf
, nctinv
, nctpdf
, nctstat
![]() | nctpdf | nctstat | ![]() |