MATLAB Creating Graphical User Interfaces
function axes1_ButtonDownFcn(hObject, eventdata, handles) % hObject handle to axes1 (see GCBO) % eventdata reserved - to be defi ...
NoteMost MATLAB plotting functions clear the axes and reset a number of axes properties, including the ButtonDownFcn, before plo ...
Examples of GUIDE Apps The following are examples that are packaged with MATLAB. The introductory text for most examples provide ...
...
Examples of GUIDE UIs “Modal Dialog Box in GUIDE” on page 8-2 “GUIDE App With Parameters for Displaying Plots” on page 8-7 “GUI ...
Modal Dialog Box in GUIDE In this section... “Create the Dialog Box” on page 8-2 “Create the Program That Opens the Dialog Box” ...
(^6) Select File > Save As. (^7) In the Save As dialog box, in the File name field, type modaldlg.fig. Create the Program Tha ...
(^6) From the File menu, select Save. (^7) In the Save dialog box, in the File name field, type closedlg.fig. Then, click Save. ...
pos_size = get(handles.figure1,'Position'); % Call modaldlg with the argument 'Position'. user_response = modaldlg('Title','Conf ...
(^3) Click one of the buttons in the Confirm Close dialog box. When you click one of the buttons, modaldlg.m closes the Confirm ...
GUIDE App With Parameters for Displaying Plots This example shows how to examine and run a prebuilt GUIDE app. The app contains ...
Examine the Code (^1) In GUIDE, click the Editor button to view the code. 2 Near the top of the Editor window, use the Go To but ...
almost identical to the f1_input_Callback function. Both functions check for valid user input. If the value in the edit field is ...
catch EM % Cannot evaluate expression user typed set(handles.plot_button,'String','Cannot plot t'); uicontrol(hObject); end The ...
GUIDE App Containing Tables and Plots This example shows how to examine and run a prebuilt GUIDE app. The app contains two table ...
Examine the Code (^1) In GUIDE, click the Editor button to view the code. 2 Near the top of the Editor window, use the Go To but ...
plot_type_Callback The plot_type_Callback function executes when the user changes the selection in the pop-up menu at the top of ...
See Also Related Examples “Create a Simple App Using GUIDE” on page 2-2 “Write Callbacks in GUIDE” on page 7-2 “Share Data Amon ...
Interactive List Box App in GUIDE This example shows how to examine and run a prebuilt GUIDE app. The app contains a list box th ...
Alternatively, you can call the lbox2 function in the Command Window with the 'dir' name-value pair argument. The name-value pai ...
«
7
8
9
10
11
12
13
14
15
16
»
Free download pdf