Main Content

C/C++ Code Generation

Generate C/C++ code from MATLAB® and Simulink®

After you develop your application, you can generate portable C/C++ source code, standalone executables, or standalone applications from your MATLAB code and Simulink models. C/C++ code generation enables you to run your simulation on machines that do not have MATLAB installed and to speed up processing while you work in MATLAB. For a list of Communications Toolbox™ features that support C/C++ code generation, see Functions and System Objects Supporting C Code Generation. To see a demonstration, watch this video: Generate C Code from MATLAB Code. You need MATLAB Coder™ to generate C/C++ code.

Apps

MATLAB CoderGenerate C code or MEX function from MATLAB code

Functions

codegenGenerate C/C++ code from MATLAB code

Topics