Circular Cross Correlation using FFT

Calculate the circular and non-circular cross correlation using the FFT method.
1.8K Downloads
Updated 17 Oct 2013

View License

Rough idea:
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.

Cite As

Johannes Schmitz (2026). Circular Cross Correlation using FFT (https://www.mathworks.com/matlabcentral/fileexchange/43967-circular-cross-correlation-using-fft), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Fourier Analysis and Filtering in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0