MATLAB: Popupmenu in GUI popupmenu I made a popupmenu in GUI, but how do i populate the popup with choices? thanks Best Answer Press return in the string option in GUIDE to start new lines.Programatically, use a cellarray of strings for the string option:uicontrol('style','popup','string',{'option 1';'hello world';'Is it Friday yet?'}) Related SolutionsMATLAB: How to make invisible popupmenu function YourGUI_popup1_callback(hObject, event, handles) choice = get(hObject, 'Value'); popups = [handles.popup2, handles.popup3, handles.popup4]; set(popups, 'Visible', 'off'); set(popups(choice), 'Visible', 'on'); MATLAB: How to make push buttons in GUI that are unable to be pressed until another push button is pressed When the pushbuttons are created, have the first one be set to 'enable', 'on', and the others set to 'enable', 'off'. Then in the callback for the first push button, if the circumstances are appropriate, set() 'enable', 'on' for the other 4 buttons. Related QuestionToggling a radio button when switching popup menu optionsCan a popup-menu on GUI get an excel file sheet name to use as stringHow to load data from popup menu in figure 1 into edit text in figure 2How to make a push button that will change its text when I click on it
Best Answer