%PACK   Consolidate workspace memory.
%   PACK performs memory garbage collection. Extended MATLAB
%   sessions may cause memory to become fragmented, preventing
%   large variables from being stored. PACK is a command that
%   saves all variables on disk, clears the memory, and then
%   reloads the variables.
%
%   If you run out of memory often, here are some additional system
%   specific tips:
%   Windows:    Increase virtual memory using the control panel.
%   Macintosh:  Change the application memory size by using 'Get Info'
%               on the program icon.  You may also want to turn on virtual
%               memory via the Memory Control Panel.
%   VAX/VMS:    Ask your system manager to increase your Working Set
%               and/or Pagefile Quota.
%   Unix:       Ask your system manager to increase your Swap Space.
%
%   You should cd to a directory where you have "write" permission to execute
%   this command successfully. The following lines of code will help you 
%   accomplish the consolidation of workspace memory.
%
%           cwd = pwd;
%           cd(tempdir);
%           pack
%           cd(cwd)
%
%   See also MEMORY.

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 5.6 $  $Date: 1997/11/21 23:32:29 $
%   Built-in function.
