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
2015년 4월 15일
close all
댓글 수: 4
Adam Danz
2019년 9월 14일
For figures with modified closeRequestFcn functions,
close all force
Raphael Kriegl
2020년 9월 16일
After all the things I found and tried its really that simple, huh.
Thanks a lot!
Pintu Saini
2021년 9월 2일
not working for me in online matlab.
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
2021년 9월 2일
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 Exchange에서 Develop Apps Programmatically에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!