Generate C/C++ source code, static libraries, dynamic libraries, or executables from MATLAB code using theMATLAB Coder™app or thecodegen
command. 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).
MATLAB Coder | Generate C code or MEX function fromMATLABcode |
codegen |
Generate C/C++ code fromMATLABcode |
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 thecodegen
command.