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
delayis a scalar, the function applies the same delay to each column ofdata.When
delayis a vector:If
datais a matrix, the length of thedelayvector must equal the number of columns in the matrix. The function applies a delay to each column using the correspondingdelayentry.If
datais a column vector, the function creates a matrix where each column is the shift in thedatavector by each entry indelay. The number of columns inshifted_dataequals the length of thedelayvector. The kth column ofshifted_datais the result of shiftingdatabydelay(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

