Check if Coverage is ON/OFF

조회 수: 9 (최근 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 CenterFile Exchange에서 Collect 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