x=-1.5:0.0001:1.5;
y1=exp(-0.5*x.^2);
y2=x.^4-x.^2;
plot(x,y1,x,y2)
legend('exp(-0.5*x^2)','x^4-x^2')
title('Joonis 2')
grid on