How to enable content preview for all subsystems programmatically?

Illustration
Santiago - 2020-11-05T10:49:46+00:00
Question: How to enable content preview for all subsystems programmatically?

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?

Expert Answer

Profile picture of John Michell John Michell answered . 2025-11-20

Please refer to this example.

 

f14;
SubSystems=find_system('f14','FindAll','On','BlockType','SubSystem');
set(SubSystems,'ContentPreviewEnabled','On')


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!