How to search multiple block types using find_system
34 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
Fangjun Jiang
2019-2-6
Turn on regexp
find_system(bdroot,'regexp','on','BlockType','Inport|outport')
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!