If you have Simulink® Coder™ or Embedded Coder®, you can generate C or C++ code from models that include Stateflow® blocks.
Generate code from models that include Stateflow blocks.
Produce standalone code for linked and unlinked atomic subcharts.
Implement array data in column-major, row-major, or multidimensional layouts.
Set parameters in the Model Configuration Parameters dialog box programmatically.
Use variant transitions to create reusable code with variations.