Filter löschen
Filter löschen

How to find a particular type of Subsystems?

13 Ansichten (letzte 30 Tage)
Bibigul Shektybayeva
Bibigul Shektybayeva am 20 Jun. 2017
Beantwortet: Vishal Neelagiri am 22 Jun. 2017
How to find a particular type of Subsystems? I would like to know how many Configurable and Atomic subsystems there are in my system. I tried:
find_system(bdroot, 'FindAll', 'On','FollowLinks', 'On', 'LookUnderMasks', 'On','regexp','on', 'BlockType','AtomicSubSystem'),
but I get an empty matrix, even though I have an Atomic subsystem in the system. The same is with 'ConfigurableSubsystem'. Any help is appreciated :) P.S. 'Atomic SubSystem', 'AtomicSubsystem' and 'Atomic Subsystem' do not work as well.

Akzeptierte Antwort

Vishal Neelagiri
Vishal Neelagiri am 22 Jun. 2017
The reason why this didn't work is because the BlockType for an AtomicSubsystem is still displayed as 'Subsystem'. You can try to extract out the 'TreatAsAtomicUnit' block parameter from the subsystem and check if it is equal to 'on' or 'off'

Weitere Antworten (0)

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