MATLAB: How to search multiple block types using find_system

find_systemMATLAB

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

Best Answer

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