To view type proposal options, in the Fixed-Point Converter app, at the Convert to Fixed Point step, click .
The following options are available.
|Basic Type Proposal Settings||Values||Description|
Fixed-point type proposal mode
Propose fraction lengths for specified word length
Use the specified word length for data type proposals and propose the minimum fraction lengths to avoid overflows.
Propose word lengths for specified fraction length (default)
Use the specified fraction length for data type proposals and propose the minimum word lengths to avoid overflows.
Default word length
Default word length to use when Fixed point type proposal mode is set to Propose fraction lengths for specified word lengths
Default fraction length
Default fraction length to use when Fixed point type proposal mode is set to Propose word lengths for specified fraction lengths
|Advanced Type Proposal Settings||Values||Description|
When proposing types
ignore simulation ranges
Propose data types based on derived ranges.
ignore derived ranges
Propose data types based on simulation ranges.
use all collected data (default)
Propose data types based on both simulation and derived ranges.
Propose target container types
Propose data type with the smallest word length that can represent the range and is suitable for C code generation ( 8,16,32, 64 … ). For example, for a variable with range [0..7], propose a word length of 8 rather than 3.
Propose data types with the minimum word length needed to represent the value.
Optimize whole numbers
Do not use integer scaling for variables that were whole numbers during simulation.
Use integer scaling for variables that were whole numbers during simulation.
Proposes signed and unsigned data types depending on the range information for each variable.
Propose signed data types.
Propose unsigned data types.
Safety margin for sim min/max (%)
Specify safety factor for simulation minimum and maximum values.
The simulation minimum and maximum values are adjusted by the percentage designated by this parameter, allowing you to specify a range different from that obtained from the simulation run. For example, a value of 55 specifies that you want a range at least 55 percent larger. A value of -15 specifies that a range up to 15 percent smaller is acceptable.
Specify the fimath properties for the generated fixed-point data types.
The default fixed-point math properties use the Floor rounding and Wrap overflow. These settings generate the most efficient code but might cause problems with overflow.
After code generation, if required, modify these settings to optimize the generated code, or example, avoid overflow or eliminate bias, and then rerun the verification.
Product word length
32 (default)|any positive integer
Word length, in bits, of the product data type
Sum word length
32 (default)|any positive integer
Word length, in bits, of the sum data type
|Generated File Settings||Value||Description|
Generated fixed-point file name suffix
Specify the suffix to add to the generated fixed-point file names.
|Plotting and Reporting Settings||Values||Description|
Custom plot function
Specify the name of a custom plot function to use for comparison plots.
Plot with Simulation Data Inspector
Specify whether to use the Simulation Data Inspector for comparison plots.
Highlight potential data type issues
Specify whether to highlight potential data types in the generated html report. If this option is turned on, the report highlights single-precision, double-precision, and expensive fixed-point operation usage in your MATLAB® code.