alignsignals
通过延迟最早的信号来对齐两个信号
句法
description
[[
保持对齐信号的长度,xa
,,,,ya
] =对齐信号(X
,,,,y
,,,,maxlag
,'截短')xa
andya
,,,,the same as those of the input signals,X
andy
, 分别。
如果估计延迟,d,是积极的,那么dzeros are prepended to
X
最后dsamples ofX
are truncated.如果估计延迟,d,那是负面的 -dzeros are prepended to
y
最后-dsamples ofy
are truncated.
笔记
X
andy
是长的行还是列的长度向量lXandly, 分别。
如果d≥lX, 然后
xa
由组成lXzeros. All samples ofX
are lost.如果-d≥ly, 然后
ya
由组成lyzeros. All samples ofy
are lost.
To avoid assigning a specific value tomaxlag
使用时'截短'
选项,设置maxlag
至[[]
。
Examples
输入参数
输出参数
Algorithms
您可以在规范中找到有关延迟估计的理论
Finddelay
函数(请参阅Algorithms)。这
alignsignals
function uses the estimated delayd至delay the earliest signal such that the two signals have the same starting point.指定
Finddelay
功能,这对信号不必彼此延迟延迟。但是,只有当它们之间存在足够的相关性时,才能成功对齐信号。有关估计协方差和相关功能的更多信息,请参见[[1]。如果your signals have features such as pulses or transitions, you can align them more effectively using measurement functions instead of correlation. For an example, see对齐两个二聚体波形。
References
[[1] Orfanidis, Sophocles J.Optimum Signal Processing. An Introduction。第二版。新泽西州Englewood Cliffs:Prentice-Hall,1996年。