Restore search path to its factory-installed state
As an alternative to the restoredefaultpath
function,
use the rmpath
function or use the pathtool
function
to open the Set Path dialog box.
restoredefaultpath
restoredefaultpath
restores
the MATLAB® search path to its factory-installed state. By default,
the search path includes the MATLAB userpath
folder,
the folders defined as part of the MATLABPATH
environment
variable, and the folders provided with MATLAB and other MathWorks® products.
For more information, see What Is the MATLAB Search Path?
Note:
|
If MATLAB fails to initialize properly on startup, then
call both restoredefaultpath
and matlabrc
.
For more details, see Path Unsuccessfully Set at Startup.
MATLAB does not support issuing restoredefaultpath
from
a UNC path name. Doing so might result in MATLAB being unable
to find files on the search path. If you do use restoredefaultpath
from
a UNC path name, restore the expected behavior by changing the current
folder to an absolute path, and then reissuing the restoredefaultpath
command.