Simulink block name compare

I want to search for "YYYY" block available in my model file. If this block is not available I have to proceed with else part.
Thanks in advance

回答(1 个)

Xun Wu
Xun Wu 2021-2-12

0 个投票

The MATLAB function "find_system" can be used to list all the blocks in a Simulink model. Run this function to get the list of blocks, and then search in the list to check whether "YYYY" exists.
Check the following page for documentation of the "find_system" function:
https://www.mathworks.com/help/simulink/slref/find_system.html

类别

帮助中心File Exchange 中查找有关 Modeling 的更多信息

产品

版本

R2016b

标签

Community Treasure Hunt

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

Start Hunting!

Translated by