Code Generation for System Objects

You can generate C and C++ code for a subset of System objects provided by the following toolboxes.

Toolbox NameSee
Communications System Toolbox™System Objects in MATLAB Code Generation in the DSP System Toolbox™ documentation.
Computer Vision System Toolbox™System Objects in MATLAB Code Generation in the Computer Vision System Toolbox documentation.
DSP System ToolboxSystem Objects in MATLAB Code Generation in the DSP System Toolbox documentation.
Image Acquisition Toolbox™
Phased Array System Toolbox™Code Generation in the Phased Array System Toolbox documentation.
System Identification Toolbox™Generate Code for Online Parameter Estimation in MATLAB in the System Identification Toolbox documentation.
WLAN System Toolbox™System Objects in MATLAB Code Generation in the DSP System Toolbox documentation.

To use these System objects, you need to install the requisite toolbox. For a list of System objects supported for C and C++ code generation, see Functions and Objects Supported for C/C++ Code Generation — Alphabetical List and Functions and Objects Supported for C/C++ Code Generation — Category List.

System objects are MATLAB® object-oriented implementations of algorithms. They extend MATLAB by enabling you to model dynamic systems represented by time-varying algorithms. System objects are well integrated into the MATLAB language, regardless of whether you are writing simple functions, working interactively in the command window, or creating large applications.

In contrast to MATLAB functions, System objects automatically manage state information, data indexing, and buffering, which is particularly useful for iterative computations or stream data processing. This enables efficient processing of long data sets. For general information about MATLAB objects, see Object-Oriented Programming.

Was this topic helpful?