How to enable content preview for all subsystems programmatically?

5 visualizzazioni (ultimi 30 giorni)
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!

Risposta accettata

Fangjun Jiang
Fangjun Jiang il 11 Set 2018
Please refer to this example.
f14;
SubSystems=find_system('f14','FindAll','On','BlockType','SubSystem');
set(SubSystems,'ContentPreviewEnabled','On')

Più risposte (1)

patrick shaw
patrick shaw il 20 Ott 2020
If you select any block or group of blocks, under format > block layout, you'll find Content Preview

Categorie

Scopri di più su Create Large-Scale Model Components in Help Center e File Exchange

Prodotti


Release

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by