P=[-2 -1.5 -1.2 -0.8 -0.1 0.4 0.7 1.2 1.7 2];
T=[-0.7991 -0.0298 -0.6499 -1.0275 1.9011 0.6675 -0.7723 -0.6499 -0.0974 -0.7991];
net=newrbe(P,T);
n=-2:0.01:2;
plot(n,sim(net,n));