How to Edit Drop Down Item field based on a changing variable in App Designer
Afficher commentaires plus anciens
Hi
If I have a variable that is changing depending on the users interaction with the App, how am I able to code the items section of the dropdown menu to incorporate said variable.
for example
if c = 'hay';'bye' (2x3 char array)
i can write app.DropDown.Items = {c(1,:), c(2,:)} which gives me the items i want in the drop down field.
However I want to automate it so the app.dropdown.items field is populated by the variable c which might not be (2x3) but for a different case be (9x3) so Id like 9 items in the drop down. How would I go about doing that.
This is an extremely simple version of what I am trying to do but just want to understand what sort of code/function would work. any help is appreciated.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Entering Commands 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!