How can I remove the Default selection in Listbox GUI?
15 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Vinayak Appasaheb Bhatte
le 18 Juil 2018
Commenté : Vinayak Appasaheb Bhatte
le 20 Juil 2018
I always see the top option in the listbox is default selected. How to remove this default selection?
Please help me. I checked the property inspector but couldn't find any solution. Thanks!
0 commentaires
Réponse acceptée
Adam Danz
le 20 Juil 2018
Modifié(e) : Adam Danz
le 20 Juil 2018
If you'd rather have the 2nd one as default set the 'Value' property to 2.
If you want there to be no default, set the 'Value' property to an empty matrix and set the 'Max' and 'Min' properties to satisfy the following condition:
Max - Min > 1
10 commentaires
Adam Danz
le 20 Juil 2018
You need to set that value either 1) when you are creating the listbox (as in my example) or 2) in the properties menu if you're using GUIDE.
You can also change the 'value' setting any time by using the handle to the listbox.
either
lb.Value = [];
or
set(lb, 'Value', [])
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!