Installation guide

5 Workspace, Search Path, and File Operations
Restoring the Default Search Path
To restore the default search path, click Default in the Set Path dialog box.
This changes the search path so that it includes only the direc tories installed
with MATLAB and related products.
Reverting to the Previous Path
To restore the previous path, click Revert in the Set Path dialog box. This
cancels any unsaved changes you have made in the Set Path dialog box.
Saving Settings to the Path
When you make changes to the search path, they remain in effect during
the current MATLAB session. To kee p the changes in effect for subsequent
sessions, you need to save them. To save changes using the Set Path dia log
box, click Save.
Ifyouwanttoautomaticallyusethissearchpathinfuturesessions,save
the path to your MATLAB startup directory, which saves
pathdef.m to
that location. You can save the changes to the default
pathdef.m file, in
matlabroot/toolbox/local if you have write permission for that directory
but see the following caution. Alternatively, you can include
addpath and
rmpath statements in a startup.m file, which avoids some problems y ou
might h ave with saving the path, for example, using th e same pa th with both
Windows and UNIX platforms. Fo r m o re information, s ee “Using the Path in
Future Sessions” on page 5-31.
Note When M ATLAB starts up, it may provide in the Command Window a
list of invalid directories. These directories were previously in
pathdef.m but
were subsequently deleted. The directories do not now appear on the search
path listing in the Set Path dialog box. Click Save to overwrite the
pathdef
M-file, thereby eliminating future reporting of these nonex iste nt directories.
5-30