C/C++ Code Generation
Generate C/C++ code from MATLAB® code
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.
For a list of functions that support code generation, see Function List (C/C++ Code Generation).
Apps
| MATLAB Coder | Generate C code or MEX function from MATLAB code |
Functions
codegen | Generate C or C++ code from MATLAB code |
Topics
- Generate Deployable Standalone Code by Using the MATLAB Coder App (MATLAB Coder)
Follow the steps of the code generation workflow to generate a standalone C++ dynamic linked library.
- Generate Standalone C Static Library at the Command Line (MATLAB Coder)
Generate a C static library from a MATLAB function by using the
codegencommand.





