sir popup menu can gave certain value
Afficher commentaires plus anciens
sir popup menu can gave certain value.its automatically increment.....i used to generate 1,2 ,3 up to 10
1 commentaire
lirics lirics
le 8 Sep 2015
Réponses (1)
Walter Roberson
le 8 Sep 2015
N = 10;
vals_to_set = cellstr( num2str((1:N).') );
set(handles.AnAppropriateHandle, 'string', vals_to_set);
2 commentaires
lirics lirics
le 8 Sep 2015
Walter Roberson
le 8 Sep 2015
You can use this code any time before the user needs to see the menu.
Do not put it in the create function because your maximum value is variable and the create function will not know what the maximum value is yet. Put it in the callback of whatever routine calculates determines the maximum value to use.
Catégories
En savoir plus sur Interactive Control and Callbacks 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!