How to kill all figure windows in MATLAB?

Is it possible to kill all figure windows with only a single click or command?

回答 (2 件)

Dishant Arora
Dishant Arora 2015 年 4 月 15 日

8 投票

close all

4 件のコメント

Adam Danz
Adam Danz 2019 年 9 月 14 日
For figures with modified closeRequestFcn functions,
close all force
Raphael Kriegl
Raphael Kriegl 2020 年 9 月 16 日
After all the things I found and tried its really that simple, huh.
Thanks a lot!
Pintu Saini
Pintu Saini 2021 年 9 月 2 日
not working for me in online matlab.
Adam Danz
Adam Danz 2021 年 9 月 2 日
@Pintu Saini I assum you're responding to Dishant's answer rather than my comment directly under the answer. I've also added a new answer that may be more visible.

サインインしてコメントする。

Adam Danz
Adam Danz 2021 年 9 月 2 日

1 投票

Update
close all force
% or
close('all','force')
In R2016a, Matlab introduced uifigure which has hidden handles by default so they go undetected by the "close all" request. Figure handle visiblilty can be changed from the HandleVisibility property.

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Programmatically についてさらに検索

質問済み:

2015 年 4 月 15 日

コメント済み:

2021 年 9 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by