Joint Frequency and Delay Correlation

2D (frequency and delay) circular cross correlation.
2.4K Downloads
Updated 6 Feb 2017

View License

[FDOUT, FREQ_AXIS] = FDCORR(A,B,FRANGE)
FDCORR Joint frequency and delay correlation
Performs an efficient circular cross correlation between two vectors over all possible frequency offsets (Dopplers) between -pi and pi where 2pi is the sampling rate.
A: vector representing received signal sampled at FS = 2pi
B: vector representing correlation code sampled at FS = 2pi
FRANGE: Two element vector from lowest to highest frequency to search over within a frequency range from -pi to pi.
For Example [-pi/10 pi/10]. Omitting FRANGE will default to [-pi pi].
FDOUT: 2D Correlation surface vs delay and frequency offset FREQ_AXIS: Frequency values aligned to frequency axis (-pi to pi)

With no output arguments FDCORR will plot the surface correlation magnitude vs frequency and delay offset in the
current figure window.

Vector "A" represents a received signal that has been encoded with a correlation code (such as GPS and CDMA applications) or a training sequence. It has an unknown frequency offset due to Doppler offsets and frequency offsets in the receiver, and an unknown delay shift relative to the start of the code sequence represented by vector "B". FDCORR will efficiently find the correlation between the received sequence and reference code over frequency and delay offsets.

Vectors A and B are interchangable.

fd_corr_demo.m is included in the zip file to demonstrate use.

Cite As

Dan Boschen (2024). Joint Frequency and Delay Correlation (https://www.mathworks.com/matlabcentral/fileexchange/26035-joint-frequency-and-delay-correlation), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP2
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

Fixed a typo in the Application Note section describing the fft approach to cross correlation.

1.0.0.0