Is there a script function or variable to determine if running on desktop?
이전 댓글 표시
I have a script which I run from the Matlab desktop/display. I wish to run it from the Linux command line without the desktop (using the -nodesktop option). But there are functions in the script which exit if running without the Matlab desktop. Is there a way in the script to not execute those commands if not running on the desktop?
댓글 수: 2
Stephen23
2018년 3월 21일
"...there are functions in the script which exit if running without the Matlab desktop."
Have you tried a judicious application of try and catch ?
Craig Anderson
2018년 3월 21일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!