How can I programmatically close Simulink scope windows in Simulink 9.0 (R2017b)?

조회 수: 23 (최근 30일)
I have a number of scope windows open from my Simulink model. I would like to put something similar to CLOSE ALL in a MATLAB file which will close all the scope windows.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2018년 1월 17일
편집: MathWorks Support Team 2018년 1월 17일
You can use the following code to close all open Simulink Scopes and Signal Viewers.
 
shh = get(0,'ShowHiddenHandles');
set(0,'ShowHiddenHandles','On');
hscope = findobj(0,'Type','Figure','Tag','SIMULINK_SIMSCOPE_FIGURE');
close(hscope);
set(0,'ShowHiddenHandles',shh);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

태그

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

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by