This is where navigation should be.

LXCORR - Linear crosscorrelation

Usage

h=lxcorr(f,g)

Description

lxcorr(f) computes the linear crosscorrelation of the input signal f and g. The linear cross-correlation is computed 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*}

with \(L_{h} = L_{f} + L_{g} - 1\) where \(L_{f}\) and \(L_{g}\) are the lengths of f and g, respectively.

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