Filter löschen
Filter löschen

command for reading the available subsystems using find_system();

4 Ansichten (letzte 30 Tage)
Joseph Stalin
Joseph Stalin am 9 Nov. 2016
Beantwortet: Kanupriya Singh am 26 Jun. 2020
Hi, I have a model with few sub system blocks inside. I am using find_system() to read the subsystems as below.. find_system('<ModelName>/<Parent_Subsystem>','BlockType','Subsystem'); It reads empty cell.. But I am expecting the path of the subsystems inside the Parent_Subsystem.. Could anybody help me on this?

Antworten (1)

Kanupriya Singh
Kanupriya Singh am 26 Jun. 2020
To get all the subsystems inside your loaded system, use the following code:
find_system(system_name, 'FollowLinks', 'on', 'LookUnderMasks', 'all', 'LookUnderReadProtectedSubsystems', 'on', 'BlockType', 'SubSystem')

Kategorien

Mehr zu Programmatic Model Editing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by