\section{LOAD Load Variables From A File}

\subsection{Usage}

Loads a set of variables from a file in a machine independent format.
The \verb|load| function takes one argument:
\begin{verbatim}
  load filename,
\end{verbatim}
or alternately,
\begin{verbatim}
  load('filename')
\end{verbatim}
This command is the companion to \verb|save|.  It loads the contents of the
file generated by \verb|save| back into the current context.  Global and 
persistent variables are also loaded and flagged appropriately.
\subsection{Example}

Here is a simple example of \verb|save|/\verb|load|.  First, we save some variables to a file.
\begin{verbatim}
--> D = {1,5,'hello'};
--> s = 'test string';
--> x = randn(512,1);
--> z = zeros(512);
--> who
  Variable Name      Type   Flags             Size
              D      cell                    [1 3]
              s    string                    [1 11]
              x    double                    [512 1]
              z     float                    [512 512]
--> save loadsave.dat

\end{verbatim}
Next, we clear all of the variables, and then load them back from the file.
\begin{verbatim}
--> clear all
--> who
  Variable Name      Type   Flags             Size
--> load loadsave.dat
--> who
  Variable Name      Type   Flags             Size
              D      cell                    [1 3]
            ans    double                    [0 0]
              s    string                    [1 11]
              x    double                    [512 1]
              z     float                    [512 512]

\end{verbatim}
