Main Content

Code Generation

Generate C or C++ code from your chart

If you have Simulink® Coder™ or Embedded Coder®, you can generate C or C++ code from models that include Stateflow® blocks.


Generate C or C++ Code from Stateflow Blocks

Generate code from models that include Stateflow blocks.

Generate Code from Atomic Subcharts

Produce standalone code for linked and unlinked atomic subcharts.

Select Array Layout for Matrices in Generated Code

Implement array data in column-major, row-major, or multidimensional layouts.

Code Generation Using Variant Transitions

Use variant transitions to create reusable code with variations.

Featured Examples