\section{NDIMS Number of Dimensions in Array}

\subsection{Usage}

The \verb|ndims| function returns the number of dimensions
allocated in an array.  The general syntax for its
use is
\begin{verbatim}
  n = ndims(x)
\end{verbatim}
and is equivalent to \verb|length(size(x))|.
