function body_proloz
t=1:5;
y=[10,12,15,16,18];
xj=0.5:0.1:5.5;
y2=polyval(polyfit(t,y,2),xj);
plot(t,y,'x',xj,y2)
k=polyfit(t,y,2);
disp(polyval(k,1.5))
yi=interp1(t,y,xj,'spline');
hold on
plot(xj,yi)
hold off
legend('body','polynom 2 st.','prolozeni spline','Location','SouthEast')
end

