Scott - if you want the (default or user-selected) values from the list box and popup menu to be used in the code/program, then use the handles for these two controls/widgets to get that data. If you are using GUIDE to design your GUI, then use the handles structure which "manages" handles to all of the controls to obtain the data. For example, if you have a push button that executes some code based on the selections in the listbox (tagged as listbox1) and the popup menu (tagged as popupmenu1), then your push button callback could look something like
function pushbutton1_Callback(hObject,eventdata,handles)
lbItems = get(handles.listbox1,'String');
lbSelection = lbItems{get(handles.listbox1,'Value')}
pmItems = get(handles.popupmenu1,'String');
pmSelection = pmItems{get(handles.popupmenu1,'Value')}
Note that since you are selecting items from a cell array of strings (either lbItems or pmItems) then if you are expecting numeric data, you would have to convert it accordingly.
If you are not using GUIDE, then you can just follow the above using the appropriate handles from when you created the controls.
Try the above and see what happens!
Best Answer