How can I program the selection options of the popupmenu?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I want to read a xls File in Matlab and give the User of my GUI the possibility, to choose an option depending on the data from my xls File. So the selction options of the popupmenu have to be changed. Is that possible and how can I do it?
Example:
List from xls-File:
- green
- blue
- red
this are then the options of my popupmenu.
But if the List contains
- green
- blue
- red
- yellow
yellow should be also an option of the popupmenu.
2 comentarios
Adam
el 9 de Abr. de 2019
You cabn edit the 'string' property of a uicontrol (which is what I assume you are using as a popumenu) whenever you want.
Jan
el 9 de Abr. de 2019
@Adam: This is the perfect answer already. I hestitate to post "Simply set the 'String' property of the popup menu" as my answer.
Respuestas (0)
Ver también
Categorías
Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!