x=-7:0.01:7;
f1=atan(x+2).^2;
f2=atan(x-2).^2;
plot(x,f2,'b')
hold
plot(x,0.1*f1+0.9*f2,'y')
plot(x,0.3*f1+0.7*f2,'k')
plot(x,0.5*f1+0.5*f2,'r')
plot(x,0.7*f1+0.3*f2,'c')
plot(x,0.9*f1+0.1*f2,'m')
plot(x,f1,'g')
xlabel('x'); ylabel('w F_1(x) + (1-w) F_2(x)');
legend('w=0','w=0.1','w=0.3','w=0.5','w=0.7','w=0.9','w=1');
