sir popup menu can gave certain value
Show older comments
sir popup menu can gave certain value.its automatically increment.....i used to generate 1,2 ,3 up to 10
1 Comment
lirics lirics
on 8 Sep 2015
Answers (1)
Walter Roberson
on 8 Sep 2015
N = 10;
vals_to_set = cellstr( num2str((1:N).') );
set(handles.AnAppropriateHandle, 'string', vals_to_set);
2 Comments
lirics lirics
on 8 Sep 2015
Walter Roberson
on 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.
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!