Main Content

Replacement Name: double


Specify a name for double built-in data types in generated code.

Category: Code Generation > Data Type Replacement


Default: ''

If a value is not specified, the code generator uses the Code Generation Name, real_T.

Specify a character vector for the code generator to use as a name for double built-in data types.

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.

To use the Simulink Name, specify double in the Replacement Name column.

To replace the Code Generation Name for double with an object:

  • For a Simulink.AliasType object, set the BaseType object property to double.

  • For a Simulink.NumericType object, set the DataTypeMode object property to Double.

  • Specify the object name in the Replacement Name column.

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.


Replace data type names in the generated code enables this parameter.

Command-Line Information

Parameter: ReplacementTypes, replacementName.double
Type: character vector
Value: The Simulink Name , a Simulink.AliasType object, or a Simulink.NumericType object, where the object exists in the base workspace.
Default: ''

Recommended Settings

DebuggingNo impact
TraceabilityA valid character vector
EfficiencyNo impact
Safety precaution

No recommendation

Related Topics