% harjutustund nr. 14, ülesanne 7
x=[1:0.5:5];
y=[0,10,18,25,32.2,39,43,48,52.3];
f=@(t) interp1(x,y,t,'spline')
pindala=integral(f,1,5)
fplot(f,[-1,8])
yline(0)
xline(1)
xline(5)
grid on