Hi; I am doing GUI which has two popup menu functions. I defined the value of a variable x in popupmenu1 function. and want to use the value of x in popupmenu2. plz anybody tell me how can i use this?? For example->
function popupmenu1_Callback(hObject, eventdata, handles)b=get(handles.popupmenu1, 'value'); switch b case 1 x=0:.1:1; case 2 x=0:.1:10; case 3 x=0:.1:100; endfunction popupmenu2_Callback(hObject, eventdata, handles)
[In this function, I want to use the value of x.]
Best Answer