This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

C Code Generation

Generate C code from MATLAB® code and Simulink® models

You can generate C code from your MATLAB and Simulink model designs. Some Communications Toolbox™ blocks and System objects provide support for C code generation when used with MATLAB Coder™.

Generate C Code from MATLAB Code Video


Generate C Code from MATLAB Code

Prepare MATLAB code for code generation and generate C-MEX code and a C executable.

Generate C Code from Simulink Model

Build an executable and run the executable within MATLAB.

C Code Generation Support List for System Objects and Functions

Communications Toolbox related System objects and functions that support code generation

Featured Examples