I am trying to find out the time delay between two signals using crosscorrelation.
4 ビュー (過去 30 日間)
古いコメントを表示
Hi The sampling rate of my data is 30 milliseconds. If hd and pd are my two time series data, I use
crosscorr (hd,pd)
to compute crosscorrelation. and
D = finddelay (hd,pd)
Now the value of D is -2. What do I infer from it ?? How much is the time delay ??
0 件のコメント
回答 (1 件)
Pham Dang
2016 年 8 月 11 日
First paragraph of
help finddelay
ends by : If Y is delayed with respect to X, D is positive. If Y is advanced with respect to X, D is negative.
Therefore your sequence pd is advanced by 2 samples with respect to hd.
The delay (in time) is equal to the number of samples multiplied by the sampling period.
(By the way, the unit of measurement of a sampling rate is "samples/seconds" or "Hz" and not "seconds" ; therefore, did you give the sampling "rate" or the sampling "period" ?)
2 件のコメント
Pham Dang
2016 年 8 月 12 日
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!