小研初试 利用 别人的程序做MATLAB神经网络 数据预测 结论:别人的程序不好用

1.网上找到一段代码

http://blog.csdn.net/daa20/article/details/50809516

2.更改 输入P 输出T

%输入数据
P = xlsread('8.ELMAN单变量测试.xlsx','Sheet1','E1:J5');
%输出数据
T = xlsread('8.ELMAN单变量测试.xlsx','Sheet1','E4:J6');

 

excel下的数据为:

其中红字为训练数据,绿色底纹为 目标变量3+1的模式

然后在matla2016中运行 , 出现了如下状况

警告: NEWELM used in an obsolete way.
> In nnerr.obs_use (line 17)
  In newelm>create_network (line 128)
  In newelm (line 103)
          See help for NEWELM to update calls to the new argument list.
 
错误使用 network/train (line 340)
Output data size does not match net.outputs{2}.size.

警告 说的是使用了早期版本的newelm, 红色错误:输出网络的大小不匹配

然后这个问题到现在还是没有解决):

 

posted on 2017-11-21 19:05  HDU_musk  阅读(440)  评论(0)    收藏  举报

导航