MATLAB Creating Graphical User Interfaces
Create a Simple UI Using GUIDE respond because the functions contain no statements that perform actions yet. This topic shows yo ...
2 How to Create a UI with GUIDE handles.sinc = sinc; % Set the current data value. handles.current_data = handles.peaks; surf(ha ...
Create a Simple UI Using GUIDE 1 Display the pop-up menu callback in the MATLAB Editor. In the GUIDE Layout Editor, right-click ...
2 How to Create a UI with GUIDE This code first retrieves two pop-up menu properties: String — a cell array that contains the m ...
Create a Simple UI Using GUIDE In the Editor, the cursor moves to the Surf push button callback in the UI code file, which conta ...
2 How to Create a UI with GUIDE Add this code to the Mesh push button callback, pushbutton2_Callback: % Display mesh plot of t ...
Create a Simple UI Using GUIDE 3 Try other combinations before closing the window. ...
2 How to Create a UI with GUIDE Files Generated by GUIDE In this section... “Code Files and FIG-Files” on page 2- 24 “UI Code Fi ...
Files Generated by GUIDE mygui.m, then the name of the main function is mygui. Each callback in the file is a local function of ...
2 How to Create a UI with GUIDE Double-click a component to show its properties in the Property Inspector. In the Property Ins ...
Files Generated by GUIDE callback code manually. For details, see “Renaming and Removing GUIDE-Generated Callbacks” on page 8-5. ...
...
3 A Simple Programmatic UI ...
3 A Simple Programmatic UI Create a Simple UI Programmatically This example shows how to create a simple UI programmatically, su ...
Create a Simple UI Programmatically To run the code, go to the Run section in the Editor tab. Then click Run. Create a Code File ...
3 A Simple Programmatic UI The Position property is a four-element vector that specifies the location of the UI on the screen a ...
Create a Simple UI Programmatically The pop-up menu component String property uses a cell array to specify the three items in th ...
3 A Simple Programmatic UI hpopup = uicontrol('Style','popupmenu',... 'String',{'Peaks','Membrane','Sinc'},... 'Position',[300,5 ...
Create a Simple UI Programmatically Value property to the index of the selected string. The pop-up menu callback reads the pop-u ...
3 A Simple Programmatic UI end function contourbutton_Callback(source,eventdata) % Display contour plot of the currently selecte ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf