Fast Circular (Periodic) Cross Correlation
Uses fft to calculate the circular cross correlation of two periodic signal vectors.This is equivalent to xc(k)=sum(u1.*circshift(u2,k)), but much faster (on the order of 500 times faster for a 1024 point signal).
The package also includes two examples. One checks the calculation against the definition. The second compares the speed of the fast algorithm to one based on the definition for a range of input vector sizes.
Cite As
Travis Wiens (2024). Fast Circular (Periodic) Cross Correlation (https://www.mathworks.com/matlabcentral/fileexchange/24342-fast-circular-periodic-cross-correlation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by: Circular Cross Correlation, Fast Circular Cross Covariance
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
fast_periodic_xcorr/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |