Function Reference: trnd

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

Random arrays from the Student’s T distribution.

Return a matrix of random samples from the t (Student) distribution with df degrees of freedom.

r = trnd (df) returns an array of random numbers chosen from the Student’s T distribution with df degrees of freedom. The size of r is the size of df. df must be a finite real number greater than 0, otherwise NaN is returned.

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: tcdf, tpdf, tpdf, tstat

Source Code: trnd