How to enable content preview for all subsystems programmatically?

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 日

2 投票

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 日

0 投票

If you select any block or group of blocks, under format > block layout, you'll find Content Preview

カテゴリ

ヘルプ センター および File ExchangeSubsystems についてさらに検索

製品

リリース

R2018a

質問済み:

2018 年 9 月 4 日

回答済み:

2020 年 10 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by