How to search multiple block types using find_system

24 ビュー (過去 30 日間)
Vamsinag Gunti
Vamsinag Gunti 2018 年 11 月 26 日
回答済み: Fangjun Jiang 2019 年 2 月 6 日
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

採用された回答

Fangjun Jiang
Fangjun Jiang 2019 年 2 月 6 日
Turn on regexp
find_system(bdroot,'regexp','on','BlockType','Inport|outport')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by