Skip to content

xcorr

datafun · scripts/datafun/xcorr.m

: c = xcorr (x)
: c = xcorr (x, y)
: c = xcorr (…, maxlag)
: c = xcorr (…, scaleopt)
: [c, lags] = xcorr (…)

Cross-correlation and autocorrelation (MATLAB-compatible).

Implemented with conv (no FFTW required) so builds without FFTW work. Scale options: "none", "biased", "unbiased", "normalized" / "coeff".

GitLab #225.