This is how im correlating
figure(2)
Newaudiolength1=audiolength2-audiolength1;
padaudio1=cat(1,suspect1(:,1),zeros(Newaudiolength1,1));
[Corr1,lag1] = xcorr(f1,Noisy_thiefAudio,'none');
subplot (5,3,1);
plot(lag1,Corr1)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!