how to convert this to r2013 a code:
clear tempPfor k = 1:500,P = [theta(k);psi(k);theta_dot(k);psi_dot(k)];tempP = [tempP P];endnet= newff([-2 2;-2 2;-2 2;-2 2],[50 1],{'tansig','purelin'},'trainlm');net.trainParam.epochs = 500;net = train(net,tempP,out(1:500)');
Best Answer