How to kill all figure windows in MATLAB?

Antworten (2)

Dishant Arora
Dishant Arora am 15 Apr. 2015

8 Stimmen

close all

4 Kommentare

For figures with modified closeRequestFcn functions,
close all force
Raphael Kriegl
Raphael Kriegl am 16 Sep. 2020
After all the things I found and tried its really that simple, huh.
Thanks a lot!
Pintu Saini
Pintu Saini am 2 Sep. 2021
not working for me in online matlab.
Adam Danz
Adam Danz am 2 Sep. 2021
@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.

Melden Sie sich an, um zu kommentieren.

Adam Danz
Adam Danz am 2 Sep. 2021

1 Stimme

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.

Kategorien

Mehr zu Develop Apps Programmatically finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 15 Apr. 2015

Kommentiert:

am 2 Sep. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by