Setting numeric values in Pop-up Menu in Matlab Guide
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
pavikirthi
il 28 Ott 2015
Commentato: pavikirthi
il 28 Ott 2015
How to set numeric values from 1 to 10 in Pop-up menu and how to use this value from Pop-up Menu to Push Button when selected in Matlab Guide?
0 Commenti
Risposta accettata
Image Analyst
il 28 Ott 2015
To load the popup with numbers:
listItems = cell(10,1);
for k = 1 : 10
listItems{k} = num2str(k);
end
set(handles.popup1, 'String', listItems);
To get the index of the selected item:
get(handles.popup1, 'Value');
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!