フィルターのクリア

Check for opening of model

32 ビュー (過去 30 日間)
Rohit
Rohit 2023 年 7 月 5 日
回答済み: Sanskar 2023 年 7 月 5 日
I searched a lot of websites online and a lot of resources, but did not find a way to check whether any model is open or not. Can someone help me with this??
  1 件のコメント
Sahas Marwah
Sahas Marwah 2023 年 7 月 5 日
Hi @Rohit, some more information like which app you are using, what version would be required by me to help you out with your problem.

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

回答 (1 件)

Sanskar
Sanskar 2023 年 7 月 5 日
Hi Rohit!
You can use the common block properties to check whether a model is open or not. The get_param() function in MATLAB has one option called 'Open' which returns 'on' if the model is open and you can see an UI and 'off' otherwise so you can you use strcmp() function to match both the string.
Refer to these documentation
Hope it helps!

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by