Spa*_*cey 5 matlab figure figures
我试图确定是否有一个很好的方法,关闭MATLAB中的所有数字,除了我之前确定的一个(不)被关闭.有这样的方法吗?
我发现每次我的MATLAB脚本运行时,我都会浪费很多时间追逐特定的东西.谢谢.
Ale*_*xey 10
你可以试试这个
%figures to keep
figs2keep = [4, 7];
% Uncomment the following to
% include ALL windows, including those with hidden handles (e.g. GUIs)
% all_figs = findall(0, 'type', 'figure');
all_figs = findobj(0, 'type', 'figure');
delete(setdiff(all_figs, figs2keep));
Run Code Online (Sandbox Code Playgroud)