closing a specified figure (if exist)
古いコメントを表示
does anyone know how to close a specified figure if it exists currently? for example: h=figure
if h exists close(h) end
採用された回答
その他の回答 (2 件)
Zoltan Gal
2019 年 4 月 13 日
0 投票
If the index of figure is 5, then
close(findobj('type','figure','number',5))
カテゴリ
ヘルプ センター および 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!