h=pxcorr(f,g)
pxcorr(f,g) computes the periodic cross correlation of the input signals f and g. The cross correlation is defined by
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.