谁帮我看看这个函数的错误原因?
P=rand(3);
T=rand(3);
net=newff([-1 1;-1 1;-1 1],[3,1],{'tansig','purelin'},'traingdm');
net.trainParam.epochs=1500;%允许最大训练步数
net.trainParam.goal=0.0001; %训练目标最小误差0.001
net.trainParam.mc=0.4;
net.trainParam.show=10; %每间隔10次训练结果
net.trainParam.lr=0.05; %学习速率0.05
net=train(net,P,T)
以下是给的错误提示
Error using ==> subsindex
Function 'subsindex' is not defined for values of class 'network'.
Error in ==> BP at 9
net=train(net,P,T);
采蘑菇(1214724282) 2011/9/10 21:35:30
for i=-0.3:0.1:0
h=[11.154,0,2.03540,0,-1.669823,i]
A=roots(h)
p=0;
for m=1:5
for n=1
x=imag(A(m,n));
if x==0
p=p+1;
y(p)=m;z(p)=n;
number=p;
end
end
end
fid=fopen('c:\point.txt','a');
for p=1:number
fprintf(fid,'%f\t', i);
fprintf(fid,'%f\n', A(y(p),z(p)));
fclose(fid)
end
end
运行报错,求解决??
关键词:
帮我
看看
这个
函数
错误
原因