Check if Coverage is ON/OFF

10 ビュー (過去 30 日間)
Shijil
Shijil 2022 年 9 月 28 日
コメント済み: Shijil 2022 年 9 月 29 日
I would like to know the possible ways, we can determine if below coverage button is selected ON/OFF, through scripting (I'm a begginer in .m scripting).
Please help, thanks :)

採用された回答

Pat Canny
Pat Canny 2022 年 9 月 28 日
You can use the get_param function to query the value of the 'CovEnable' parameter. This is a character array that can either be 'on' or 'off'.
Here is how to do so with the current loaded system (model):
isCoverageOn = get_param(gcs,'CovEnable')% will print out 'on' or 'off'
  1 件のコメント
Shijil
Shijil 2022 年 9 月 29 日
@Pat Canny Thanks a lot for this answer, it worked :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCollect Coverage for Models についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by