Main Content

List of Signal Processing Toolbox Functions that Support Code Generation

Code generation from MATLAB® is a restricted subset of the MATLAB language that provides optimizations for:

  • Generating efficient, production-quality C/C++ code and MEX files for deployment in desktop and embedded applications. For embedded targets, the subset restricts MATLAB semantics to meet the memory and data type requirements of the target environments.

Depending on which feature you wish to use, there are additional required products. For a comprehensive list, see Installing Prerequisite Products (MATLAB Coder).

Code generation from MATLAB supports Signal Processing Toolbox™ functions listed in this table:

Function List (C/C++ Code Generation)

To generate C code, you must have the MATLAB Coder™ software. If you have the Fixed-Point Designer™ software, you can use fiaccel (Fixed-Point Designer) to generate MEX code for fixed-point applications.

To generate C/C++ code and MEX files with codegen (MATLAB Coder), install the MATLAB Coder software, the Signal Processing Toolbox, and a C compiler. For the Windows® platform, MATLAB supplies a default C compiler. Run mex -setup at the MATLAB command prompt to set up the C compiler. Change to a folder where you have write permission.