Section: Random Number Generation
y = randnchi(n,mu)
where n
is an array containing the degrees of freedom for
each generated random variable (with each element of n
>= 1),
and mu
is the non-centrality shift (must be positive).
n-1
degrees of freedom plus the square of a normal
deviate with mean mu
and standard deviation 1.
--> randnchi(5*ones(1,9),0.3) ans = Columns 1 to 8 0.1157 0.0020 0.0029 0.0764 0.0035 0.0669 0.4731 0.0469 Columns 9 to 9 0.0662 --> quit