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

Topics

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