Default for underspecified data type

Description

Specify the default data type to use for inherited data types if Simulink® software could not infer the data type of a signal during data type propagation.

Category: Math and Data Types

Settings

Default: double

double

Sets the data type for underspecified data types during data type propagation to double. Simulink uses double as the data type for inherited data types.

single

Sets the data type for underspecified data types during data type propagation to single. Simulink uses single as the data type for inherited data types.

Tips

  • This setting affects both simulation and code generation.

  • For embedded designs that target single-precision processors, set this parameter to single to avoid the introduction of double data types.

  • Use the Model Advisor Identify questionable operations for strict single-precision design check to identify the double-precision usage in your model.

Command-Line Information

Parameter: DefaultUnderspecifiedDataType
Value: 'double' | 'single'
Default: 'double'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
Efficiencysingle (when target hardware supports efficient single computations)
double (otherwise)
Safety precautionNo impact

Related Topics