data=importdata('data.txt');
x=data(:,1);
y=data(:,2);
xx=linspace(x(1),x(end),100);
yy=spline(x,y,xx);
plot(x,y,'s',xx,yy,'r');