alplensignals.
Align two signals by delaying earliest signal
Syntax
描述
[
keeps the lengths of the aligned signals,Xa
,雅
] = alignsignals(X
,Y
,maxlag
,'truncate')Xa
和雅
,与输入信号相同,X
和Y
, respectively.
如果the estimated delay,D,是积极的,然后D零是前面的
X
和the lastD样本X
被截断了。如果the estimated delay,D, is negative, then –D零是前面的
Y
和最后一个 -D样本Y
被截断了。
Notes
X
和Y
are row or column vectors of lengthLX和LY, respectively.
如果D≥LX, then
Xa
consists ofLX零。所有样本X
丢失了。如果–D≥LY, then
雅
consists ofLY零。所有样本Y
丢失了。
避免分配特定值maxlag
when using the'truncate'
option, setmaxlag
to[]
。
例子
Input Arguments
Output Arguments
算法
You can find the theory on delay estimation in the specification of the
finddelay
function (see算法)。The
alplensignals.
功能使用估计的延迟D延迟最早的信号,使得两个信号具有相同的起点。As specified for the
finddelay
function, the pair of signals need not be exact delayed copies of each other. However, the signals can be successfully aligned only if there is sufficient correlation between them. For more information on estimating covariance and correlation functions, see[1]。如果信号具有诸如脉冲或转换的功能,则可以使用测量功能而不是相关性更有效地对齐它们。例如,看到Align Two Bilevel Waveforms。
参考
[1] Orfanidis,Sophocles J.最佳信号处理。一个介绍。2nd Ed. Englewood Cliffs, NJ: Prentice-Hall, 1996.