% Harjutustund nr. 9, ülesanne 1
% joonis
syms x;
y1=x;
diff(y1)
y2=2*x-0.5;
diff(y2)
y3=x+1.5;
diff(y3)
y1=@(x) x;
y2=@(x) 2*x-0.5;
y3=@(x) x+1.5;
fplot(y1,[-1,0.5])
hold on
fplot(y2,[0.5,2])
fplot(y3,[2,4])
hold off