
function demo_2

[x,y]=data_file;

M=length(x);
t=1:M;

h=1/100;
tt=1:h:M;

xt=interp1(t,x,tt,'pchip');
yt=interp1(t,y,tt,'pchip');

clf;
hold on;
plot(xt,yt);
print('-dpdf','figura2');
hold off;




