Check if Coverage is ON/OFF

9 vues (au cours des 30 derniers jours)
Shijil
Shijil le 28 Sep 2022
Commenté : Shijil le 29 Sep 2022
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 :)

Réponse acceptée

Pat Canny
Pat Canny le 28 Sep 2022
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 commentaire
Shijil
Shijil le 29 Sep 2022
@Pat Canny Thanks a lot for this answer, it worked :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Collect Coverage for Models dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by