Main Content


Show tolerances specified for a system

Since R2019a



showTolerances(proposalSettings) displays the absolute, relative, and time tolerances specified for a system specified by the proposalSettings object. If the proposalSettings object has no tolerances specified, the showTolerances object function does not display anything.


collapse all

This example shows how to apply and remove tolerances from signals in a system. In this example, you add tolerances to a DataTypeWorkflow.proposalSettings object, and then remove all tolerances from this object.

model = 'fxpdemo_feedback';

Create a DataTypeWorkflow.ProposalSettings object.

propSettings = DataTypeWorkflow.ProposalSettings;

Add an absolute tolerance of 0.05 to the output of the Down Cast block in the Controller subsystem.

addTolerance(propSettings, 'fxpdemo_feedback/Controller/Down Cast',1,'AbsTol',5e-2);

Add a relative tolerance of 1% to the same signal.

addTolerance(propSettings, 'fxpdemo_feedback/Controller/Down Cast',1,'RelTol',1e-2);

Use showTolerances to see all tolerances associated with the proposal settings object.

                      Path                       Port_Index    Tolerance_Type    Tolerance_Value
    _________________________________________    __________    ______________    _______________

    {'fxpdemo_feedback/Controller/Down Cast'}        1           {'AbsTol'}           0.05      
    {'fxpdemo_feedback/Controller/Down Cast'}        1           {'RelTol'}           0.01      

Clear the tolerances stored in the ProposalSettings object.


Using showTolerances, verify that there are no longer any tolerances stored in the ProposalSettings object.


Input Arguments

collapse all

Object that contains proposal settings, specified as a DataTypeWorkflow.ProposalSettings object. This object specifies tolerances and settings to use during the data type proposal process.

Version History

Introduced in R2019a