Main Content

Replace data type names in the generated code


Specify whether to replace built-in data type names with user-defined data type names in generated code.

Category: Code Generation > Data Type Replacement


Default: off


Displays the Data type names table. The table provides a way for you to replace the names of built-in data types used in generated code. This mechanism can be particularly useful for generating code that adheres to application or site data type naming standards.

You can choose to specify new data type names for some or all Simulink® built-in data types listed in the table. Specify the replacement name as one of the following:

  • A Simulink.AliasType object.

  • A Simulink.NumericType object.

  • The Simulink Name built-in data type name.

An error occurs, if:

  • A replacement data type specification is inconsistent with the Simulink Name data type.

  • The Simulink.AliasType object has the Data scope parameter set to Exported.


Uses Simulink Coder™ names for built-in Simulink data types in generated code.


This parameter enables replacement for all built-in data type name in the Data type names table with user-defined data type names in generated code.

Command-Line Information

Parameter: EnableUserReplacementTypes
Type: character vector
Value: 'on' | 'off'
Default: 'off'

Recommended Settings

DebuggingNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics