How to search multiple block types using find_system

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일

3 개 추천

Turn on regexp
find_system(bdroot,'regexp','on','BlockType','Inport|outport')

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품

릴리스

R2017b

질문:

2018년 11월 26일

답변:

2019년 2월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by