How to close all neural network diagrams in MATLAB?

流过昼夜 提交于 2020-01-13 19:27:23

问题


I need to show diagrams of some networks, but the problem is that close all doesn't close these windows, so I have several windows to close manually after a few runs.

[x,t] = house_dataset;
net1 = newff(x, t, [5, 3]);
view(net1);
net2 = newff(x, t, [7, 5]);
view(net2);
close all;

However if I keep the handle of window, close function will close it:

net3 = newff(x, t, [9, 7]);
h = view(net3);
close(h);

But it's not easy for me to collect all those handles. How can I find all those handles programmatically?


回答1:


You can use the command:

nnet.guis.closeAllViews()

This will close all the diagrams for the networks.



来源:https://stackoverflow.com/questions/40867281/how-to-close-all-neural-network-diagrams-in-matlab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!