How can i get value from pop up menu
Mostrar comentarios más antiguos
Hello everyone
i want to get values from popup menu. And then i want to set this values for plot command. How can i do this
N7=num2strget(handles.popupmenu2,'String')
plot(N1,N2,N7);
function popupmenu2_Callback(hObject, eventdata, handles)
switch get(handles.popupmenu,'Value')
if (a==1)
set(handles.popupmenu2,'Value','o');
elseif (a==2)
set(handles.popupmenu2,'Value','+');
elseif (a==3)
set(handles.popupmenu2,'Value','s');
elseif (a==4)
set(handles.popupmenu2,'Value','x');
elseif (a==5)
set(handles.popupmenu2,'Value','-');
elseif (a==6)
set(handles.popupmenu2,'Value','*');
elseif (a==7)
set(handles.popupmenu2,'Value','d');
end
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Subplots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
