C/C++ Code Generation
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).
Rubriques
- Generate C Code at the Command Line (MATLAB Coder)
Use command line tools to generate C code from an example MATLAB function.
- Generate C Code by Using the MATLAB Coder App (MATLAB Coder)
Use the MATLAB Coder app to generate C code from an example MATLAB function.
- 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.
- Human Activity Recognition Simulink Model for Smartphone Deployment (Statistics and Machine Learning Toolbox)
Generate code from a classification Simulink® model prepared for deployment to a smartphone.