www.pudn.com > matlab±à³Ì.zip > test_popup_callback.m


function test_popup_callback 
 
% Find the value of the popup menu 
value = get(gcbo,'Value'); 
 
% Place the value into the text field 
Hndl = findobj(gcbf,'Tag','Label1'); 
str = ['Option ' num2str(value)]; 
set (Hndl,'String',str);