Buffer input signal
The Buffer
object buffers an input signal. The number of
samples per channel in the input must equal the difference between the output buffer size and
buffer overlap (i.e., Length
- OverlapLength
).
To buffer an input signal:
Create the dsp.Buffer
object and set its properties.
Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects? (MATLAB).
buff = dsp.Buffer
buff = dsp.Buffer(len,ovrlap,ics)
returns a buffer
System
object™, buff
= dsp.Bufferbuff
, used to buffer input signals with
overlap.
returns a buffer object, buff
= dsp.Buffer(len
,ovrlap
,ics
)buff
, with Length
property set to len
, OverlapLength
property set
to ovrlap
, and InitialConditions
property set to
ics
.
For versions earlier than R2016b, use the step
function to run the System object algorithm. The arguments to
step
are the object you created, followed by
the arguments shown in this section.
For example, y = step(obj,x)
and y = obj(x)
perform equivalent operations.
y = buff(x)
To use an object function, specify the
System
object as the first input argument. For
example, to release system resources of a System
object named obj
, use
this syntax:
release(obj)
This object implements the algorithm, inputs, and outputs described on the Buffer block reference page. The object properties correspond to the block properties, except as noted.