Default for underspecified data type
Data type to use when Simulink cannot infer the data type
Model Configuration Pane: Math and Data Types
Description
The Default for underspecified data type specifies the default data type to use for inherited data types if the Simulink® software could not infer the data type of a signal during data type propagation.
Settings
double
(default) | single
double
Sets the data type for underspecified data types during data type propagation to
double
. Simulink usesdouble
as the data type for inherited data types.single
Sets the data type for underspecified data types during data type propagation to
single
. Simulink usessingle
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.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | single (when target hardware supports efficient single computations) double (otherwise) |
Safety precaution | No impact |
Programmatic Use
Parameter: DefaultUnderspecifiedDataType |
Value: 'double' | 'single' |
Default: 'double' |
Version History
Introduced in R2013b