Is there a way to close all open MATLAB figures at once?

397 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2009 年 6 月 27 日
編集済み: MathWorks Support Team 2024 年 8 月 29 日
I would like to close all opened MATLAB figures at once.

採用された回答

MathWorks Support Team
MathWorks Support Team 2024 年 8 月 29 日
編集済み: MathWorks Support Team 2024 年 8 月 29 日
To close all open figures, use the command
close all
Figures with the 'HandleVisibility' property set to 'off' will not be closed with "close all". To close these figures, use the command
delete(findall(0));
If you have a GUI that opens plot windows and you would like to close all plots without closing the GUI at the same time, then you can use the following code:
% Delete all Figures with an empty FileName property
delete(findall(groot, 'Type', 'figure', 'FileName', []));

その他の回答 (1 件)

Chase
Chase 2014 年 7 月 3 日
編集済み: MathWorks Support Team 2018 年 4 月 6 日

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

タグ

タグが未入力です。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by