% Harjutustunni nr. 2, ülesanne 5
fplot(@(x) 2.*x+4,[0.01,10])
hold on
fplot(@(x) x.^2-2.*x+1,[0.01,10])
hold on
fplot(@(x) 1./x,[0.01,10])
hold off
legend('y=2.*x+4','y=x.^2-2.*x+1','y=1./x')