fplot(@(x)x.^5-x.^2+2,[-2,2])
legend('y=x^5-x^2+2')
title('Joonis 2')
grid on
xlabel('x')
ylabel('y')