restore
クラス: Simulink.SuppressedDiagnostic
パッケージ: Simulink
指定された診断の非表示を削除する
構文
restore(SuppressedDiagnostic)
説明
restore(
は指定された非表示の診断オブジェクトを削除します。SuppressedDiagnostic
)
入力引数
SuppressedDiagnostic
— 非表示にされた診断オブジェクトを元に戻す
Simulink.SuppressedDiagnostic
オブジェクト
Simulink.SuppressedDiagnostic
オブジェクト
例
非表示にされた診断を元に戻す
プログラムによる診断メッセージの非表示のモデルを使用して、診断の非表示を作成してから元に戻します。
Simulink.SuppressedDiagnostic
オブジェクトの suppression
を作成し、Constant ブロック one
からのパラメーターの桁落ちに関する警告を非表示にします。
suppression = Simulink.SuppressedDiagnostic('Suppressor_CLI_Demo/one',... 'SimulinkFixedPoint:util:fxpParameterPrecisionLoss');
restore
メソッドを使用して、診断を元に戻すことができます。
restore(suppression);
非表示にされたすべての診断を元に戻す
プログラムによる診断メッセージの非表示のモデルを使用して、モデルに関連付けられたすべての診断の非表示を元に戻します。
関数 Simulink.suppressDiagnostic
を使用して、Constant ブロック one
からのパラメーターの桁落ちやパラメーター アンダーフローに関する警告を非表示にします。
diags = {'SimulinkFixedPoint:util:fxpParameterPrecisionLoss', 'SimulinkFixedPoint:util:fxpParameterUnderflow'}; Simulink.suppressDiagnostic('Suppressor_CLI_Demo/one',diags);
関数 Simulink.getSuppressedDiagnostics
を使用して、モデルに関連付けられたすべての非表示を取得します。Simulink.SuppressedDiagnostic
オブジェクトの配列として返されます。
suppressed_diagnostics = Simulink.getSuppressedDiagnostics('Suppressor_CLI_Demo')
suppressed_diagnostics = 1×2 SuppressedDiagnostic array with properties: Source Id LastModifiedBy Comments LastModified
restore
メソッドを使用し、suppressed_diagnostics
配列を反復することで、すべての診断を元に戻します。
for iter = 1:numel(suppressed_diagnostics) restore(suppressed_diagnostics(iter)); end
バージョン履歴
R2016b で導入
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)