FUNCTION REFERENCE
trnd
Student's t random numbers.
Student's t random numbers.
Syntax
R = trnd(NU)Syntax
R = trnd(NU, m, n, ...)Syntax
R = trnd(NU, [m n ...])Draws from the Student's t distribution with degrees of freedom NU > 0 (Inf gives the normal law). Without a size the result has the common size of the parameters; with one, non-scalar parameters must have that size. Invalid parameters give NaN.
Example
rng(0); trnd(5, 1, 3)Differences from MATLAB: draws use the session's Mersenne Twister stream, so rng(seed) makes them reproducible; for a given seed the numbers follow the same distribution as MATLAB's but are not the same numbers.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.