gusucode.com > 《MATLAB神经网络仿真与应用》[张德丰]的所有[程序源代码] > 第6章/li6_1.m

    x=0:0.1:5;
y=sqrt(x);
net=newrb(x,y,0,0.5,20,5);
t=sim(net,x);
plot(x,y-t,'*-')