data=importdata('data.txt');
x=data(:,1);
y=data(:,2);
polyn=polyfit(x,y,7);

xx=linspace(x(1),x(end),100);
polyv=polyval(polyn,xx);
plot(xx,polyv,x,y,'x');