w = 0.03 * k * pi/180;
x = 0.4+0.2 * cos(w);
z = 0.2+0.2 * sin(w);
y1=-atan(x/z)+acos(sqrt(1-(x.^2+z.^2-0.07).^2/(0.36*x.^2+0.36*z.^2)));
y2=asin((0.25-x.^2-z.^2)/0.24)-pi;
,{'tansig ',' tansig ',' purelin'},' traingd ');
net . train param . show = 100;
net . train param . lr = 0.05;
net . train param . epochs = 6000;
net . train param . goal = 1e-4;
net=train(凈,輸入,輸出);
輸出=sim(凈,輸入);
postmnmx(output,minO,maxO);
plot(k,y1,k,y2);
%說明:X和Z是輸入,y1和y2是輸出。輸入歸壹化,兩個輸出形成矩陣輸出,相當於輸入變成輸入,輸出變成輸出。