Is it possible to show Model Browser of a Simulink model programmatically?

6 ビュー (過去 30 日間)
Hi, I was wondering if it is possible to configure a Simulink model (using MATLAB script) to display model browser by default on opening. I want to use it in the model's PreLoadfcn callback to display the block hierarchy. Thank you
  2 件のコメント
KVM
KVM 2018 年 1 月 15 日
Are you talking about Model Explorer? If yes, the command "sfexplr" should do the trick
Sunny Talekar
Sunny Talekar 2018 年 1 月 16 日
Hi Keven, Actually, I did mean Model Browser - the pane that shows the block hierarchy for a model. By default, it is not displayed. I want it to be displayed when a model is opened. You can configure it in the GUI - View > Model Browser > Show Model Browser. Once configured, this setting is persistent. I'm just trying to figure out if there is a way to do it programmatically using m-scripts during model generation. Thank you

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

採用された回答

Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2018 年 1 月 24 日
Hi Sunny,
you can use
set_param(gcs, 'ModelBrowserVisibility', 'on')
  1 件のコメント
Sunny Talekar
Sunny Talekar 2018 年 1 月 24 日
Hi Emmanouil, That is exactly what I was looking for. Thanks

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Environment Customization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by