function plot_corr(g1,g2,t1,t2,npoints)

c=-1;
t=linspace(t1,t2,npoints);
for n=1:numel(t)
    c=[c correlation(g1,g2,t(n))];
end;

plot(t/1023,c(2:end),'b-');
