필터 지우기
필터 지우기

I am trying to find out the time delay between two signals using crosscorrelation.

조회 수: 1 (최근 30일)
Add
Add 2016년 8월 11일
댓글: Pham Dang 2016년 8월 12일
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 ??

답변 (1개)

Pham Dang
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
Add
Add 2016년 8월 11일
편집: Add 2016년 8월 11일
What I have given is the sampling rate of the data. But by mistake I wrote it in milliseconds. The sampling rate is 30 seconds . What is my sampling period here in this case??
Pham Dang
Pham Dang 2016년 8월 12일
Please read the definition of sampling rate and sampling period : Sampling (signal processing)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by