restoredefaultpath
恢复搜索路径factory-installed state
Syntax
Description
restoredefaultpath
resets the MATLAB®search path to the factory-installed state. By default, the search path includes the MATLABuserpath
folder, the folders defined as part of theMATLABPATH
environment variable, and the folders provided with MATLAB and other MathWorks®下载188bet金宝搏产品。
Note
restoredefaultpath
is intended only for situations where MATLAB is experiencing startup problems due to a corrupt search path. For general search path cleanup, seeAlternative Functionality.
If MATLAB fails to initialize properly on startup, then call bothrestoredefaultpath
andmatlabrc
. For more details, seePath Unsuccessfully Set at Startup.
MATLAB does not support issuingrestoredefaultpath
from a UNC path name. Doing so might result in MATLAB being unable to find files on the search path. If you do userestoredefaultpath
from a UNC path name, restore the expected behavior by changing the current folder to an absolute path and then reissuing therestoredefaultpath
command.
Alternative Functionality
For general search path cleanup, use thermpath
function or the Set Path dialog box. To open the Set Path dialog box, go to theHometab and in theEnvironmentsection, clickSet Path. Alternatively, use thepathtool
function.