fplot(@(x)[2*x+4,x.^2-2*x+1,1./x],[0.001,10])
legend('2x+4','x^2-2x+1','1/x')
grid on
title('Joonis 3')