This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Class: fxpOptimizationOptions

Show tolerances specified for a system




showTolerances(options) displays the absolute and relative tolerances specified for a system using the addTolerance method of the fxpOptimizationOptions class. If the options object has no tolerances specified, the showTolerances method does not display anything.

Input Arguments

expand all

fxpOptimizationOptions object specifying options and tolerances to use during the data type optimization process.


expand all

Load the system for which you want to optimize the data types.


Create a fxpOptimizationOptions object with default property values.

options = fxpOptimizationOptions;

To specify a required numeric tolerance to use during the optimization process, use the addTolerance method of the fxpOptimizationOptions object. To specify several tolerance constraints, call the method once per constraint. You can specify either relative, or absolute tolerance constraints.

addTolerance(options, 'ex_auto_gain_controller/output_signal', 1, 'AbsTol', 5e-2);
addTolerance(options, 'ex_auto_gain_controller/input_signal', 1, 'RelTol', 1e-2);

Use the showTolerances method to display all tolerance constraints added to a specified fxpOptimizationOptions object.

                     Path                      Port_Index    Tolerance_Type    Tolerance_Value
    _______________________________________    __________    ______________    _______________

    'ex_auto_gain_controller/output_signal'        1            'AbsTol'            0.05      
    'ex_auto_gain_controller/input_signal'         1            'RelTol'            0.01      

Introduced in R2018a