\section{SIZE Size of a Variable}

\subsection{Usage}

Returns the size of a variable.  There are two syntaxes for its
use.  The first syntax returns the size of the array as a vector
of integers, one integer for each dimension
\begin{verbatim}
  [d1,d2,...,dn] = size(x)
\end{verbatim}
The other format returns the size of \verb|x| along a particular
dimension:
\begin{verbatim}
  d = size(x,n)
\end{verbatim}
where \verb|n| is the dimension along which to return the size.
\subsection{Example}

\begin{verbatim}
--> a = randn(23,12,5);
--> size(a)
ans = 
  <uint32>  - size: [1 3]
 
Columns 1 to 3
 23  12   5  

\end{verbatim}
Here is an example of the second form of \verb|size|.
\begin{verbatim}
--> size(a,2)
ans = 
  <uint32>  - size: [1 1]
 12  

\end{verbatim}
