### 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 Students’s T 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. A scalar input functions as a constant matrix of the same size as the other inputs. df must be a finite real number greater than 0, otherwise NaN is returned.

When called with a single size argument, `trnd` returns 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 row vector of dimensions, sz.

Further information about the Student’s T distribution can be found at https://en.wikipedia.org/wiki/Student%27s_t-distribution

See also: tcdf, tpdf, tpdf, tstat

Source Code: trnd