dsphdl.Downsampler
Description
The dsphdl.Downsampler
System object™ downsamples an input signal by removing K–1 data samples
between input samples, where K is the downsampling factor. The System object supports these combinations of input and output data.
Scalar input and scalar output
Vector input and scalar output
Vector input and vector output
The System object provides an architecture suitable for HDL code generation and hardware deployment.
To downsample input data with a downsampler, follow these steps:
Create the
dsphdl.Downsampler
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?
Note
You can also generate HDL code for this hardware-optimized algorithm, without creating a MATLAB® script, by using the DSP HDL IP Designer app. The app provides the same interface and configuration options as the System object.
Creation
Description
creates an
HDL-optimized upsampler System object with default property values.downsample
= dsphdl.Downsampler
sets properties using one or more name-value arguments.downsample
= dsphdl.Downsampler(Name=Value
)
Properties
Usage
Syntax
Description
Input Arguments
Output Arguments
Object Functions
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)
Examples
Algorithms
Extended Capabilities
Version History
Introduced in R2022b