how to check if an specific name is existed inside a simulink
Afficher commentaires plus anciens
i want to check if an specific name(parameter,signallines,..) is existed inside a simulink model, if use can find_system work in this case? or any more quick command can be used to meet this requirement.
1 commentaire
Aishwarya
le 31 Mar 2025
Could you find an alternative to find system?
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 31 Mar 2025
To check whether a particular name exists anywhere in a Simulink model, you need to use find_system() repeatedly. Some of the calls will have to specify FindallAll 'on' along wiith various 'Type' parameters. I do not believe that you can combine multiple 'Type' with the same find_system() command
You might also need to
find_system(model,MatchFilter=@Simulink.match.allVariants)
to check all blocks including variants.
Catégories
En savoir plus sur Programmatic Model Editing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!