Get the crosscorrelation of two vectors a and b by:
e = fft(c);
f = fft(d);
g = e.*conj(f);
h = ifft(g);
See code for complete version and details like zeropadding.
Johannes Schmitz (2020). Circular Cross Correlation using FFT (https://www.mathworks.com/matlabcentral/fileexchange/43967-circular-cross-correlation-using-fft), MATLAB Central File Exchange. Retrieved .
Hi, a quick question here. Why a fftshift is required in cxcorr_fft?
Why dont you pad the first array after the data?
Hi, I have a signal of frequency 1 and 3 Hz. And another signal of 1 and 5 Hz. Can I eliminate common frequency(1 Hz) from each signal by using circular cross correlation?
This program is perfect, I have to say, thank you