what is the script to get line handle by selecting line in a model
42 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
venkateswarlu kaithepalli
le 5 Juin 2013
Réponse apportée : Aseem Routray
le 9 Déc 2019
what is the script to get line handle by selecting line in a model
0 commentaires
Réponse acceptée
Vishal Rane
le 5 Juin 2013
Not aware of anything that gets you handle of a selected line. But
find_system(bdroot,'findall','on','Type','Line')
gives all line handles in the block diagram. You can add a specific path in place of bdroot.
2 commentaires
Kaustubha Govind
le 5 Juin 2013
More specifically, you can query the 'Selected' property of the line handle to find the one that is selected:
lh = find_system(bdroot,'FindAll','on','Type','Line');
get(lh, 'Selected')
Look for the entry corresponding to Selected=on.
Plus de réponses (1)
Aseem Routray
le 9 Déc 2019
Hello,
find_system(bdroot,'FindAll', 'on', 'type','line','selected','on')
This will get you the desired result.
Regards,
Aseem
0 commentaires
Voir également
Catégories
En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!