Main Content

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 theMATLAB Coder™app or thecodegencommand. You needMATLAB Coderto generate standalone C and C++ code for supported functions.

For a list of functions that support code generation, seeFunction List (C/C++ Code Generation).

Apps

MATLAB Coder Generate C code or MEX function fromMATLABcode

Functions

codegen Generate C/C++ code fromMATLABcode

Topics

Generate C Code by Using the MATLAB Coder App(MATLAB Coder)

Generate C/C++ code from MATLAB code by using theMATLAB Coder应用程序。

Generate C Code at the Command Line(MATLAB Coder)

Generate C/C++ code from MATLAB code by using thecodegencommand.

Related Information

Featured Examples