MATLAB 帮助中心
绘图函数拟合
plotfit(net,inputs,targets)
plotfit(net,inputs1,targets1,name1,inputs2,targets2,name2,...)
plotfit(...,'outputIndex',outputIndex)
plotfit(net,inputs,targets) 绘制输入 inputs 范围内的网络的输出函数,还绘制与 inputs 中的值相关联的目标 targets 和输出数据点。误差条显示输出和 targets 之间的差。
net
inputs
targets
该图仅对具有一个输入的网络显示。
如果网络有多个输出,则只显示第一个输出/目标。
示例
plotfit(net,inputs1,targets1,name1,inputs2,targets2,name2,...) 绘制多组数据。
plotfit(...,'outputIndex',outputIndex) 使用覆盖输出元素的默认索引的可选参数绘图。
全部折叠
此示例说明如何使用前馈网络来求解简单拟合问题。
[x,t] = simplefit_dataset; net = feedforwardnet(10); net = train(net,x,t);
plotfit(net,x,t)
输入网络,指定为网络对象。要创建网络对象,请使用 feedforwardnet 或 narxnet 等函数。
feedforwardnet
narxnet
网络输入,指定为矩阵或元胞数组。
网络目标,指定为矩阵或元胞数组。
在 R2008a 中推出
plottrainstate
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处