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 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