Is there a way to close all opened MATLAB/Simulink figures at once?
239 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 27 de Jun. de 2009
Editada: MathWorks Support Team
el 24 de Abr. de 2018
I would like to close all opened MATLAB/Simulink figures at once.
Respuesta aceptada
MathWorks Support Team
el 24 de Abr. de 2018
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', []));
0 comentarios
Más respuestas (1)
Chase
el 3 de Jul. de 2014
Editada: MathWorks Support Team
el 6 de Abr. de 2018
close all
0 comentarios
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!