Installation guide

Search Path
Recovering from Problems with the Search Path
If you get unexpected results that are related to the search path, you can try
to correct the path file o r restore the default path. You might experience path
problems if you s ave the path on a Windows platform and then try to use the
same
pathdef.m file on a UNIX platform . Sim i larly, you might experience
problems if you edit the
pathdef.m file directly and make it invalid, or if the
file becomes corrupt, renamed, or lost.
Forexample,ifanerrormessagesimilartothefollowingappearswhenyou
start MATLAB
Warning: MATLAB did not appear to successfully set the search
path...
it indicates a problem with the search path and you will not be able to use
MATLAB successfully.
To recover from problems with the search path, try the following, in order,
proceeding to the next step only if needed:
1 View the pathdef.m and startup.m files, looking for obvious problems.
Make changes and save them. If path problems appear to be resolved, start
MATLAB again to be sure the problem does not reappear. D epending on
the problem, you might not be able to even view the
pathdef.m file.
2 Use the default path for MathWorks products. In the Set Path dialog box,
select Default,thenSave,thenClose. D epending on the problem, you
might not be able to even open the dialog box.
3 Run restoredefaultpath. This sets the search path to include only
installed products from The MathWorks. If that seems to h ave corrected
the problem, run
savepath. Start MATLAB again to be sure the problem
does not reappear.
Depending on the problem, this might generate a message such as
The path may be bad. Please save your work (if desired), and quit.
If so, perform step 4.
4 Perform these steps after trying step 3.
5-33