Parameter Quantization Advisor
Description
The Parameter Quantization Advisor app provides details on numerical issues related to parameter quantization. Using this app, you can:
Explore in detail the effects of parameter quantization on your model.
Explore the parameters in a model that have quantization issues, including parameters with a structure value, bus objects, and
Simulink.Parameterobjects.Filter quantization issues that result from parameter overflow, underflow, and precision loss.
Sort quantization issues based on bits of error, absolute error, or relative error.
Adjust parameter precision loss diagnostic configuration parameters.
Required Products
You must have a Fixed-Point Designer™ license to use the Parameter Quantization Advisor app with a model
that contains fixed-point data types. Without a Fixed-Point Designer license, you can use the app only on models that contain built-in data types,
including double, single, int8,
int16, int32, int64,
uint8, uint16, uint32, and
uint64. This requirement applies to both dialog and run-time data
types.
Open the Parameter Quantization Advisor App
Simulink® Toolstrip: On the Debug tab, under Diagnostics, click Parameter Quantization Advisor. (since R2025a)
Diagnostic Viewer: From a numeric diagnostic warning or error, under Suggested Actions, click Open.
MATLAB® Command Window: Enter this command, where
model_nameis the name of the model. (since R2025a)parameterQuantizationAdvisor("model_name")
Examples
Programmatic Use
Limitations
Parameters with nested structures are not supported.
The Refresh Data button applies app settings to the model, compiles the model, and updates the data in the app. This button does not update model data in the Diagnostic Viewer and elsewhere.
Tips
The Parameter Explorer pane displays a hierarchical tree of parameters in the model that have quantization issues. You can enter a string to search for a particular element in this tree. To view additional details, select the parameter you want to inspect.
When you filter data in the app, the Parameter Explorer pane reflects this filtering. Parameters with lossless elements, parameters with quantization issues filtered in the app, and parameters with suppressed quantization issues display when you select the Parameters Without Diagnostics filter. (since R2025a)
The Parameter Quantization Advisor app reports information for these quantization issues:
By default, the Parameter Quantization Advisor app hides the parameter overflow and precision loss diagnostics that the above configuration parameters suppress or filter out via threshold settings. To display these diagnostics in the app, use the Parameters Without Diagnostics button.
The Parameter Quantization Advisor app reports details on quantization issues for tunable and nontunable parameters that experience quantization loss.
When the model uses a referenced configuration set, the Parameter Quantization Advisor app overrides the local configuration settings only. The app highlights the locally overridden configuration parameters in blue. For more information on sharing a configuration set with multiple models, see Share a Configuration with Multiple Models. (since R2025a)
Version History
Introduced in R2022bSee Also
Model Settings
- Detect underflow | Detect overflow | Bits of error threshold | Detect precision loss | Suppress double to single detection | Absolute difference threshold | Relative difference threshold
Functions
fixed.unifiedErrorCalculator.absoluteError(Fixed-Point Designer) |fixed.unifiedErrorCalculator.bitsOfError(Fixed-Point Designer) |fixed.unifiedErrorCalculator.relativeAbsoluteError(Fixed-Point Designer)


