From: kung on
Hi,

I'm really new about MATLAB, I need to find out x-correlation and time
lags of two data set.
Both data set is equal in length and the sample rate is 100 Hz.

I used;

crosscorr(x,y)
[XCF,Lags,Bounds] = crosscorr(x,y)

and I got the figure of cross correlation which provide r and lags,
however, I'm not sure the way to turn number of lags to the unit of
time (s).

Can someone clarify this?

Thanks in advance,
k