필터 지우기
필터 지우기

Is there a way to close all opened MATLAB/Simulink figures at once?

조회 수: 239 (최근 30일)
I would like to close all opened MATLAB/Simulink figures at once.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2018년 4월 24일
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));
To close all open Simulink models, use the command
bdclose all
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 CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by