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 atomic subcharts and unit testing.
Implement array data in column-major, row-major, or multidimensional layouts.
Set parameters in the Model Configuration Parameters dialog box programmatically.