我对 matlab NN 工具箱很陌生,并创建了以下 NN 网络:
val.P=Exp;
net =newff(minmax(p),[20,3],{'tansig','purelin'},'trainlm');
net.trainParam.epochs = 5000; %Max Ephocs
net.trainParam.goal = 1e-5; %Training Goal in Mean Sqared Error
net.trainParam.min_grad = 0.05e-3;
net.trainParam.show = 50; %# of ephocs in display
net.trainParam.max_fail =20;
net = init(net);
[net,tr]=train(net,p,t,[],[],val);
o1 = sim(net,Exp)
我怎样才能运行上述 20 次并将数据存储在一个变量(o1)中?很感谢任何形式的帮助 !