How to enable content preview for all subsystems programmatically?

5 ビュー (過去 30 日間)
Xiaojie Qiu
Xiaojie Qiu 2018 年 9 月 4 日
回答済み: patrick shaw 2020 年 10 月 20 日
Hi everyone,
my simulink model is upgraded from a previous version, in which there was no Content Preview option at that time. So I want to know how I can programmatically configure the model in order that the content of all subsystems can be previewed?
Thank you!

採用された回答

Fangjun Jiang
Fangjun Jiang 2018 年 9 月 11 日
Please refer to this example.
f14;
SubSystems=find_system('f14','FindAll','On','BlockType','SubSystem');
set(SubSystems,'ContentPreviewEnabled','On')
  1 件のコメント
Xiaojie Qiu
Xiaojie Qiu 2018 年 9 月 11 日
Hi Fangjun, it works well. Thank you for your help!

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

その他の回答 (1 件)

patrick shaw
patrick shaw 2020 年 10 月 20 日
If you select any block or group of blocks, under format > block layout, you'll find Content Preview

カテゴリ

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

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by