Startup error related to the getSettingsRoot

7 ビュー (過去 30 日間)
Hadi
Hadi 2016 年 3 月 10 日
回答済み: Pratik 2024 年 2 月 14 日
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 Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by