No products are associated with this question.
Do you have the Signal Processing Toolbox? If so, you can use xcorr()
I'll give you an example
[xc,lags] = xcorr(mtlb,100,'coef');
xc above is 201 samples long with the autocorrelation out to lags of +/- 100 (plus 0)
You can just extract the positive lags with
Play games and win prizes!Learn more