As an alternative to the restoredefaultpath function,
use the Set Path dialog box.
restoredefaultpath restoredefaultpath; matlabrc
sets the search path to include only folders for MathWorks® installed
products. Use restoredefaultpath when you are having
problems with the search path.
sets the search path to include only folders for MathWorks installed
products and corrects search path problems encountered during 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 issue restoredefaultpath from
a UNC path name, restore the expected behavior by changing the current
folder to an absolute path, and then reissuing restoredefaultpath.