p=xlsread('F:\m.xls');
t=xlsread('F:\n.xls');
s=7:16
res=1:10;
for i=1:10
net=newff(minmax(p),[s(i),18],{'tansig','logsig'},'traingdx');
net.trainParam.epochs=2000;
net.trainParam.goal=0.001;
net=train(net,p,t)
y=sim(net,p);
error=y-t;
res(i)=norm(error);
end
p是下面附表中1994-2006年的数据,t是表中1995-2007年的数据。
输入上述命令后,出现下列提示:
??? Error using ==> network.train
Targets are incorrectly sized for network.
Matrix must have 18 rows.
很抱歉,把数据放在附件里了,因为文本里放不开,不好意思,劳驾各位了。帮忙解答的我想给10论坛币的感谢,不知怎么给哦?
附件列表