x=[1:7]'
y=[0.5 2.5 2.0 4.0 3.5 6 5.5]'
polyfit(x,y,1)