Products & Services Solutions Academia Support User Community Company

Learn more about Statistics Toolbox   

nctrnd - Noncentral t random numbers

Syntax

R = nctrnd(V,DELTA)
R = nctrnd(V,DELTA,v)
R = nctrnd(V,DELTA,m,n)

Description

R = nctrnd(V,DELTA) returns a matrix of random numbers chosen from the noncentral T distribution using the corresponding degrees of freedom in V and noncentrality parameters in DELTA. V and DELTA can be vectors, matrices, or multidimensional arrays. A scalar input for V or DELTA is expanded to a constant array with the same dimensions as the other input.

R = nctrnd(V,DELTA,v) returns a matrix of random numbers with parameters V and DELTA, where v is a row vector. If v is a 1-by-2 vector, R is a matrix with v(1) rows and v(2) columns. If v is 1-by-n, R is an n-dimensional array.

R = nctrnd(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.

Examples

nctrnd(10,1,5,1)
ans =
  1.6576
  1.0617
  1.4491
  0.2930
  3.6297

References

[1] Evans, M., N. Hastings, and B. Peacock. Statistical Distributions. 2nd ed., Hoboken, NJ: John Wiley & Sons, Inc., 1993, pp. 147–148.

[2] Johnson, N., and S. Kotz. Distributions in Statistics: Continuous Univariate Distributions-2. Hoboken, NJ: John Wiley & Sons, Inc., 1970, pp. 201–219.

See Also

random, nctpdf, nctcdf, nctinv, nctstat

Noncentral t Distribution

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS