This is where navigation should be.

PXCORR - Periodic cross correlation

Usage

h=pxcorr(f,g)

Description

pxcorr(f,g) computes the periodic cross correlation of the input signals f and g. The cross correlation is defined by

\begin{equation*} h\left(l+1\right)=\sum_{k=0}^{L-1}f\left(k+1\right)\overline{g\left(k-l+1\right)} \end{equation*}

In the above formula, \(k-l\) is computed modulo \(L\).

pxcorr(f,g,'normalize') does the same, but normalizes the output by the product of the \(l^2\)-norm of f and g.