\section{RANDNCHI Generate Noncentral Chi-Square Random Variable}

\subsection{Usage}

Generates a vector of non-central chi-square random variables
with the given number of degrees of freedom and the given
non-centrality parameters.  The general syntax for its use is
\begin{verbatim}
   y = randnchi(n,mu)
\end{verbatim}
where \verb|n| is an array containing the degrees of freedom for
each generated random variable (with each element of \verb|n| >= 1),
and \verb|mu| is the non-centrality shift (must be positive).
\subsection{Function Internals}

A non-central chi-square random variable is the sum of a chisquare
deviate with \verb|n-1| degrees of freedom plus the square of a normal
deviate with mean \verb|mu| and standard deviation 1.
\subsection{Examples}

Here is an example of a non-central chi-square random variable:
\begin{verbatim}
--> randnchi(5*ones(1,9),0.3)

ans = 

    0.1157    0.0020    0.0029    0.0764    0.0035    0.0669    0.4731    0.0469    0.0662 


\end{verbatim}
