Main Content

Code Generation Output

Select output type that the code generator uses to produce code for a loaded model

To generate code to run on a specific target platform, configure the code generation output for your model. Consider your code configuration for these target platforms:

  • The MATLAB® development computer that runs MathWorks® software during application development.

  • The test hardware on which you test code during rapid prototyping.

  • The production hardware on which you deploy generated code.

The code generation output is controlled by the system target file (STF) and language that you specify for the model. These settings control which code generation options are available in the Configuration Parameters dialog box and in the Code Mappings editor. Use these options to configure the generated code to run on your target hardware


Simulink CoderGenerate and execute C and C++ code from Simulink models, Stateflow charts, and MATLAB functions for use in applications such as simulation acceleration, rapid prototyping, and hardware-in-the-loop (HIL) simulations (Since R2019b)


switchTargetSelect target for model configuration set