Matlab: Aligning data by using cross covariance

后端 未结 3 1725
再見小時候
再見小時候 2021-01-26 06:07

I want to get the offset in samples between two datasets in Matlab (getting them synced in time), a quite common issue. Therefore I use the cross correlation function xcorr or t

3条回答
  •  自闭症患者
    2021-01-26 06:47

    If the two signals misalign by non-integer number of samples, e.g. 3.7 samples, then the xcorr method may find the max value at 4 samples, it won't be able to find the accurate time shift. In this case, you should try a method called "unified change detection". The web-link for the paper is: [http://www.phmsociety.org/node/1404/]

    Good Luck.

提交回复
热议问题