I am currently in the process of converting a MATLAB algorithm to C in order to use it in an iOS application.
I've been struggling with the MATLAB's xcorr function. Here is the relevant MATLAB code.
xcr = xcorr(A,A,maxlags);
This , according to MATLAB documentation
returns the cross-correlation sequence over the lag range [-maxlags:maxlags]. Output c has length 2*maxlags+1.
The Apple Accelerate.Framework provides a convolution/correlation function named vDSP_conv
but I fail to see how to use it in a way that it produces the same output as xcorr
. Is this possible ? If yes could anyone help me.
Best Regards,
Acacio