Got error using exit in nodesktop mode

조회 수: 16 (최근 30일)
Jose Gutierrez de la Concha
Jose Gutierrez de la Concha 2021년 10월 18일
댓글: Michal 2021년 11월 29일
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?

채택된 답변

Ananya Tewari
Ananya Tewari 2021년 10월 21일
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
Michal
Michal 2021년 11월 29일
Thanks for functional workaround! I spent a lot of time trying to solve this problem ... :(

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by