ofdmCFOEstimate
R2026bSyntax
Description
The function computes the estimated carrier frequency offset (CFO) for an OFDM-modulated input signal. It optionally outputs the timing offset and the CFO-compensated version of the received signal. For more information, see Algorithms.
specifies options using one or more name-value arguments in addition to the input arguments
in the previous syntax.fEst = ofdmCFOEstimate(rxSignal,nfft,cplen,Name=Value)
[
also returns the compensated signal, fEst,tOffset,compensatedSignal] = ofdmCFOEstimate(___)compensatedSignal, using input
arguments in any of the previous syntaxes.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Tips
The input must contain at least one OFDM symbol and a CP.
The CFO is common across all receive antennas.
If you provide a reference signal,
ReferenceSignal, it must occur somewhere inrxSignal. Otherwise, the CFO estimate might be unpredictable.
Algorithms
This function estimates the CFO for OFDM waveforms using a two-stage approach. Depending
on the Output setting, ofdmCFOEstimate computes a coarse
CFO on a half-subcarrier grid using reference-signal correlation, a fractional CFO using
cyclic-prefix (CP) correlation, or the sum of both. The final output is scaled by
SubcarrierSpacing.
Stage 1: Half Subcarrier Estimate
If Output is "half-subcarrier-spacing" or
"total", the first stage estimates a coarse CFO by searching on a
half-subcarrier grid.
The algorithm searches candidate CFO values spaced by 1/2 subcarrier shifts over the specified subcarrier search range,
SearchRange. For each 1/2 subcarrier shift, the candidate shift is applied to the reference signal and the cross-correlation is computed between the received waveform and the shifted reference signal. The candidate frequency shift for the biggest correlation peak determines the CFO estimate in this stage.
Stage 2: Fractional Subcarrier Estimate
If Output is "fractional" or
"total", the second stage estimates fractional CFOs by using CP
correlation.
When you set
Outputto"total", the CFO estimate found in stage 1 is first used to remove part of the CFO from the received signal, before CP correlation is performed to obtain the fractional CFO.The fractional CFO is estimated from CP correlation by multiplying the signal by a delayed, conjugated version offset by
nfftsamples, and applying a moving sum overcplensamples.Averaging across symbols, the CP correlation metric is summed across
MaxNumSymbolsForAveragingOFDM symbols separated by (nfft+cplen) samples.The fractional CFO estimate is obtained from the phase of the peak correlation value.
MIMO Considerations
For MIMO configurations, these considerations apply:
When you input a MIMO signal, the metric sums the correlation magnitude-squared across all NRx × NTx pairs to produce a single metric.
To reduce run time, consider limiting number of frequency shifts by adjusting the subcarrier search range,
SearchRange. For stage 1, the algorithm compares peaks in numFreqShifts correlations. Each correlation combines all correlations across NRx × NTx pairs.The number of frequency shifts, numFreqShifts, = (k2 – k1 +1) × 2.
SearchRangespecifies k1 and k2.NRx is the number of receive antennas.
NTx in the number of transmit streams.
Extended Capabilities
Version History
Introduced in R2026b




