Figures close after running script
조회 수: 8 (최근 30일)
이전 댓글 표시
I'm running matlab through the command line interface, and when I call it to run a specific script (e.g. matlab -nosplash -nodesktop <test.m), all the figures and plots I issue in the script test.m are closed (so I only glimpse them for a few seconds). Is there a way to keep the figures around?
댓글 수: 0
답변 (2개)
Geoff Hayes
2015년 4월 7일
João - put a pause call at the end of your code to temporarily halt the execution before the script ends. See the link for details on how to use this function.
Image Analyst
2015년 4월 7일
Try putting this in somewhere near the end of your code:
uiwait(helpdlg('Examine the figures, then click OK to finish.'));
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!