How can I programmatically close Simulink scope windows in Simulink 9.0 (R2017b)?
11 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2010-8-5
编辑: MathWorks Support Team
2018-1-17
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
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!