下面,我是新qui子,用于配对有线电视网的工具箱,并建立了以下有线电视网:
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)
How can I run the above for say 20 times and store the data in one variable (o1)? Any help is very much appreciated !