Startup error related to the getSettingsRoot

8 次查看(过去 30 天)
Hi,
I am getting this error at the first run of my new installed MATLAB R2016a:
Error using Settings Undefined function or variable 'matlab.internal.getSettingsRoot'.
Error in setInitialWorkingFolder (line 4) s = Settings;
Error in matlabrc (line 195) setInitialWorkingFolder();
----
I installed the same Matlab on another machine (same Ubuntu 14.04), without having this error.
Any suggestion, help?

回答(1 个)

Pratik
Pratik 2024-2-14
Hi Hadi,
From what I can understand from the question, there is error "Undefined function or variable 'matlab.internal.getSettingsRoot'" on first run of newly installed MATLAB and there is no error when running MATLAB on other machine.
This error occurs when a custom pathdef.m file has been implement or when the path MATLAB is using is corrupt. To resolve the issue, try running the following commands and restarting MATLAB:
rehash toolboxcache
restoredefaultpath
savepath
exit
Run these commands in order from the MATLAB command line and then start MATLAB. This will remove any modifications you have made to your path; it will also remove third party toolboxes and support packages. The removed third party toolboxes and support packages will have to be installed again.
I hope this helps!

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by