How can I programmatically close Simulink scope windows in Simulink 9.0 (R2017b)?
23 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 5 Août 2010
Modifié(e) : MathWorks Support Team
le 17 Jan 2018
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.
Réponse acceptée
MathWorks Support Team
le 17 Jan 2018
Modifié(e) : MathWorks Support Team
le 17 Jan 2018
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simulink Functions dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!