Support: floating-point numbers
Code generation for floating-point data
Model Configuration Pane: Code Generation / Interface
Description
The Support: floating-point numbers parameter specifies whether to generate code for floating-point data and operations on floating-point data.
The setting of this parameter must be the same for the models in a model hierarchy.
Selecting this parameter enables the Support: non-finite numbers parameter and clearing this parameter disables Support: non-finite numbers.
If you select the MAT-file logging parameter, select this parameter and the Support: non-finite numbers parameter.
Note
The command-line values are reverse of the settings values. The value 'on'
in the command line corresponds to the description of “Off” in the settings section. The value 'off'
in the command line corresponds to the description of “On” in the settings section.
Settings
On
(default) | Off
- On
Enables generation of floating-point data and related operations.
- Off
Disables generation of floating-point data and operations. Code generator produces pure integer code. If you clear this parameter and the code generator encounters floating-point data or expressions, an error occurs. The error message reports offending blocks and parameters.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | Off (GUI), 'on' (command-line) — for integer only |
Safety precaution | No impact |
Programmatic Use
Parameter: PurelyIntegerCode |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Version History
Introduced before R2006a