In Simulink, is there a way to highlight a specific part of a circuit with a different coloured circuit lines

7 vues (au cours des 30 derniers jours)
In Simulink, is there a way to highlight a specific part of a circuit with a different coloured circuit lines

Réponse acceptée

Christopher Wallace
Christopher Wallace le 19 Juil 2018
Yes, you can use the 'hilite_system' function.
If you want to highlight only pieces of the model you selected you would first need to find the handles for each block and line. This can be done by using 'find_system'.
Example code for highlighting a group of blocks and lines you've selected:
selectedBlocks = find_system(gcs, 'SearchDepth', 1, 'FindAll', 'on', 'Selected', 'on');
hilite_system(selectedBlocks);

Plus de réponses (1)

Gokul Murali
Gokul Murali le 20 Juil 2018
Thank you Christopher, I was able to do it...
Thanks a ton

Catégories

En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by