Filter löschen
Filter löschen

How to search multiple block types using find_system

34 Ansichten (letzte 30 Tage)
Vamsinag Gunti
Vamsinag Gunti am 26 Nov. 2018
Beantwortet: Fangjun Jiang am 6 Feb. 2019
Hi,
Is it possible to find Simulink Blocks of multiple Block Types using the find_system command only once?
E.g.
blocks = find_system(bdroot, 'BlockType', {'Terminator', 'Outport'})
Of this is not possible, in what other ways can I store the blocks of these two different types in the same structure/array?
Thanks in advance :)
Best regards,
Vamsi

Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 6 Feb. 2019
Turn on regexp
find_system(bdroot,'regexp','on','BlockType','Inport|outport')

Weitere Antworten (0)

Kategorien

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

Produkte


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by