\section{GETPRINTLIMIT Get Limit For Printing Of Arrays}

\subsection{Usage}

Returns the limit on how many elements of an array are printed
using either the \verb|disp| function or using expressions on the
command line without a semi-colon.  The default is set to 
one thousand elements.  You can increase or decrease this
limit by calling \verb|setprintlimit|.  This function is provided
primarily so that you can temporarily change the output truncation
and then restore it to the previous value (see the examples).
\begin{verbatim}
   n=getprintlimit
\end{verbatim}
where \verb|n| is the current limit in use.
\subsection{Example}

Here is an example of using \verb|getprintlimit| along with \verb|setprintlimit| to temporarily change the output behavior of FreeMat.
\begin{verbatim}
--> A = randn(100,1);
--> n = getprintlimit
n = 
  <uint32>  - size: [1 1]
 1000  
--> setprintlimit(5);
--> A
ans = 
  <double>  - size: [100 1]
 
Columns 1 to 1
  0.526461067155618911  
 -0.009683349297786812  
 -0.088431892510357477  
 -0.319293228051011679  
 -1.222803614248468396
Print limit has been reached.  Use setprintlimit function to enable longer printouts
--> setprintlimit(n)

\end{verbatim}
