如何在MATLAB中关闭所有神经网络图? [英] How to close all neural network diagrams in MATLAB?

查看:392
本文介绍了如何在MATLAB中关闭所有神经网络图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要显示一些网络的图,但是问题是close all不能关闭这些窗口,因此我需要运行几次后才能关闭几个窗口.

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;

但是,如果我保持窗口的句柄,则close函数将其关闭:

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?

推荐答案

您可以使用以下命令:

nnet.guis.closeAllViews()

这将关闭所有网络图.

这篇关于如何在MATLAB中关闭所有神经网络图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆