Wikipedia gives the cross-correlation as
$ \begin{align*} (f \star g)[n] = \sum^{\infty}_{m = -\infty} f^{*}[m] g[n+m] \end{align*} $
MATLAB's documentation gives xcorr(x, y)
as
$ \begin{align*} R_{xy}[n] = E(x[n+m]y^{*}[m]) \end{align*} $ where $E$ is the evaluation function and I have switched $m$ and $n$ so it's consistent with Wikipedia's notation.
They're obviously opposite with respect to one another. If Wikipedia's definition is correct, why did MATLAB implement their function to be the opposite of the mathematical definition?
Am I missing something here? Because this difference just caused me a lot of pain while working on a project.