showTolerances
システムに対して指定された許容誤差の表示
説明
showTolerances(
は、proposalSettings
)proposalSettings
オブジェクトで指定されたシステムに対して指定されている絶対許容誤差、相対許容誤差、および時間の許容誤差を表示します。proposalSettings
オブジェクトで許容誤差が指定されていない場合は、オブジェクト関数 showTolerances
で何も表示されません。
例
信号の許容誤差の指定
この例では、システム内の信号に対する許容誤差を適用および削除する方法を示します。この例では、DataTypeWorkflow.proposalSettings
オブジェクトに許容誤差を追加した後、このオブジェクトからすべての許容誤差を削除します。
model = 'fxpdemo_feedback';
open_system(model);
DataTypeWorkflow.ProposalSettings
オブジェクトを作成します。
propSettings = DataTypeWorkflow.ProposalSettings;
Controller サブシステムの Down Cast ブロックの出力に 0.05 の絶対許容誤差を追加します。
addTolerance(propSettings, 'fxpdemo_feedback/Controller/Down Cast',1,'AbsTol',5e-2);
同じ信号に 1% の相対許容誤差を追加します。
addTolerance(propSettings, 'fxpdemo_feedback/Controller/Down Cast',1,'RelTol',1e-2);
showTolerances
を使用して推奨設定オブジェクトに関連付けられたすべての許容誤差を確認します。
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
ProposalSettings
オブジェクトに格納されている許容誤差をクリアします。
clearTolerances(propSettings)
showTolerances
を使用して、ProposalSettings
オブジェクトに格納された許容誤差が残っていないことを確認します。
showTolerances(propSettings)
Path Port_Index Tolerance_Type Tolerance_Value ____ __________ ______________ _______________
入力引数
proposalSettings
— 推奨設定を含むオブジェクト
DataTypeWorkflow.ProposalSettings
オブジェクト
推奨設定を含むオブジェクト。DataTypeWorkflow.ProposalSettings
オブジェクトとして指定します。このオブジェクトはデータ型推奨プロセスで使用する許容誤差と設定を指定します。
バージョン履歴
R2019a で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは 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)