如何将MATLAB/​Simulink所有​的绘图结果一起关闭?

如何将MATLAB/Simulink所有的绘图结果一起关闭?

 Accepted Answer

MathWorks Support Team
MathWorks Support Team on 26 Sep 2019

0 votes

如果需要关闭所有的绘图(figure),执行:
close all
但此时,HandleVisibility属性被设置为off的绘图不会被关闭。如果需要关闭这些绘图,需要进一步执行:
delete(findall(0));
如果需要关闭所有 Simulink 模型,请执行:
bdclose all
源链接:
www.mathworks.com/matlabcentral/answers/96076-is-there-a-way-to-close-all-opened-matlab-simulink-figures-at-once

More Answers (0)

Categories

Products

Release

R2019a

Community Treasure Hunt

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

Start Hunting!