clearTolerances
Clear all tolerances specified by a
DataTypeWorkflow.ProposalSettings
object
Since R2019a
Description
clearTolerances(
clears the
absolute, relative, and time tolerances of a proposalSettings
)proposalSettings
object.
Examples
Specify Signal Tolerances
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';
open_system(model);
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.
showTolerances(propSettings)
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.
clearTolerances(propSettings)
Using showTolerances
, verify that there are no longer any tolerances stored in the ProposalSettings
object.
showTolerances(propSettings)
Input Arguments
proposalSettings
— Object that contains proposal settings
DataTypeWorkflow.ProposalSettings
object
Object that contains proposal settings, specified as a DataTypeWorkflow.ProposalSettings
object. A DataTypeWorkflow.ProposalSettings
object specifies tolerances and settings to use during the data type proposal
process.
Version History
Introduced in R2019a
Ouvrir l'exemple
Vous possédez une version modifiée de cet exemple. Souhaitez-vous ouvrir cet exemple avec vos modifications ?
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)