Check if Coverage is ON/OFF

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 :)

 Accepted Answer

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'

More Answers (0)

Categories

Products

Release

R2022a

Asked:

on 28 Sep 2022

Commented:

on 29 Sep 2022

Community Treasure Hunt

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

Start Hunting!