Figures close after running script
12 ビュー (過去 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!