I know that XCORR calculates linear cross-correlation function estimates, but I wonder if there is a function that calculates circular correlation.
Kshitij Singh answered .
2025-11-20
a = [1 2 2 1]+1i; b = [1 3 4 1]-2*1i; c = cconv(a,conj(fliplr(b)),7);
circcorr_ab = ifft(fft(a).*conj(fft(b)));