Generate C/C++ source code, static libraries, dynamic libraries, or executables from
MATLAB code using the MATLAB
Coder™ app or the codegen
command. You need
MATLAB
Coder to generate standalone C and C++ code for supported
functions.
MATLAB Coder | Generate C code or MEX function from MATLAB code |
codegen | Generate C/C++ code from MATLAB code |
List of Signal Processing Toolbox Functions that Support Code Generation
Signal Processing Toolbox™ functions that support code generation.
Generate C Code at the Command Line (MATLAB Coder)
Generate C/C++ code from MATLAB code by using the codegen
command.
Generate C Code by Using the MATLAB Coder App (MATLAB Coder)
Generate C/C++ code from MATLAB code by using the MATLAB Coder app.
Specifying Inputs in Code Generation from MATLAB
When you use Signal Processing Toolbox functions for code generation, you must define the size and type of the function inputs.