
function demo_1

[x,y]=data_file;

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

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

xt=interp1(t,x,tt,'nearest neighbor interpolation');
yt=interp1(t,y,tt,'nearest neighbor interpolation');

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




