Desktop Tools and Development Environment |
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 or restore the default path. You might experience path problems if you save the path on a Windows platform and then try to use the same pathdef.m
file on a UNIX platform. Similarly, 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.
For example, if an error message similar to the following appears when you 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:
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. Depending on the problem, you might not be able to even view the pathdef.m
file.
restoredefaultpath
. This sets the search path to include only installed products from The MathWorks. If that seems to have corrected the problem, run savepath
. Start MATLAB again to be sure the problem does not reappear.
This might run for a few minutes. It sets the search path to include only installed products from The MathWorks and corrects path problems encountered during startup.
Using the Path in Future Sessions | File Management Operations |
© 1994-2005 The MathWorks, Inc.