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

Respuestas (1)

Xun Wu
Xun Wu el 12 de Feb. de 2021

0 votos

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

Categorías

Más información sobre Modeling en Centro de ayuda y File Exchange.

Productos

Versión

R2016b

Etiquetas

Preguntada:

el 7 de Dic. de 2020

Respondida:

el 12 de Feb. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by