delayseq
Delay or advance sequence
Description
delays or advances the signal in shifted_data
= delayseq(data
,delay
)data
by the number of samples
specified in delay
. Positive values of delay
delay
the signal, while negative values advance the signal. Noninteger values of
delay
represent fractional delays or advances. For fractional delays,
the function interpolates between samples.
How the delayseq
function operates on data
depends on the dimensions of the data
and delay
arguments:
When
delay
is a scalar, the function applies the same delay to each column ofdata
.When
delay
is a vector:If
data
is a matrix, the length of thedelay
vector must equal the number of columns in the matrix. The function applies a delay to each column using the correspondingdelay
entry.If
data
is a column vector, the function creates a matrix where each column is the shift in thedata
vector by each entry indelay
. The number of columns inshifted_data
equals the length of thedelay
vector. The kth column ofshifted_data
is the result of shiftingdata
bydelay(k)
.
specifies shifted_data
= delayseq(data
,delay
,fs
)delay
in seconds. fs
is the sampling
frequency of data
. If the product of delay
and
fs
is not an integer, delayseq
implements a
fractional delay or advance of the signal using interpolation.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2011a