% Harjutustund 2, ülesanne 4
fplot(@(x) [2.*x+4,x.^2-2.*x+1,1./x],[0.01,10])
legend('y=2*x+4','x^2-2*x+1','y=1/x')