Startup error related to the getSettingsRoot

7 visualizaciones (últimos 30 días)
Hadi
Hadi el 10 de Mzo. de 2016
Respondida: Pratik el 14 de Feb. de 2024
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?

Respuestas (1)

Pratik
Pratik el 14 de Feb. de 2024
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!

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by