Got error using exit in nodesktop mode

20 visualizaciones (últimos 30 días)
Jose Gutierrez de la Concha
Jose Gutierrez de la Concha el 18 de Oct. de 2021
Comentada: Michal el 29 de Nov. de 2021
Hi,
When I run MATLAB with -nodesktop option on Linux I got this error in the call to exit(0)
>> exit(0)
Error using exit
Unrecognized function or variable 'Settings'.
Any ideas about this error?

Respuesta aceptada

Ananya Tewari
Ananya Tewari el 21 de Oct. de 2021
We're investigating about this issue in MATLAB R2021b in the way that if the "Help Improve MATLAB" feature is enabled, MATLAB will throw an error at exit if part of the MATLAB preferences system had not been initialized before exit. Running with full desktop will always initialize this but when running without this may not have occurred before you exited MATLAB. To workaround this issue, you can ensure the preferences are properly initialized by calling "settings" in your MATLAB code.
>> settings
Alternatively, disable the "Improve MATLAB by sending user experience information to MathWorks" option under "Preferences" -> "MATLAB" -> "General":
  1 comentario
Michal
Michal el 29 de Nov. de 2021
Thanks for functional workaround! I spent a lot of time trying to solve this problem ... :(

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by