Delay input by specified number of samples or frames
Note: Certain features of this object will be removed in future releases. See Functionality being removed or replaced for blocks and System objects.
Delay object delays an input by a specified
number of samples or frames.
To delay an input by a specified number of samples or frames:
Define and set up your delay object. See Construction.
step to delay the input according to the properties
dsp.Delay. The behavior of
specific to each object in the toolbox.
Starting in R2016b, instead of using the
delay = dsp.Delay returns
a delay object,
delay, to delay the input by one
delay = dsp.Delay(' returns a delay object,
each property set to the specified value.
delay = dsp.Delay(LEN,' returns a delay object,
LEN and other specified properties set to
the specified values.
Delay units as samples or frames
Specify the delay units as one of |
Amount of delay
Specify amount of delay to apply to the input signal. The value of this property can be one of the following:
The default is 1.
Enable different initial conditions per channel
Set this property to
Enable different initial conditions per sample
Set this property to
Initial output of delay object
Specify the initial output(s) of the delay object. You can set
this property to a scalar, vector, matrix, or a cell array depending
on the values of the
If the input is an M-by-N matrix, the dimensions of this property value must be as follows:
Enable resetting delay states
Specify when the delay object should reset the delay states.
By default, the value of this property is
Reset trigger setting for delay
Specify the event to reset the delay as one of |
|reset||Reset delay states|
|step||Apply delay to input|
|Common to All System Objects|
Create System object with same property values
Expected number of inputs to a System object
Expected number of outputs of a System object
Check locked states of a System object (logical)
Allow System object property value changes
Delay input by five samples using the
dsp.Delay System object™.
delay = dsp.Delay(5); y = delay((1:10)'); display(y);
y = 0 0 0 0 0 1 2 3 4 5
y is delayed by 5 samples.
This object implements the algorithm, inputs, and outputs described on the Delay block reference page. The object properties correspond to the block parameters.
Usage notes and limitations:
See System Objects in MATLAB Code Generation (MATLAB Coder).