MATLAB Creating Graphical User Interfaces
'Callback',@contourbutton_Callback (^4) To the uicontrol statement that defines the pop-up menu, add the property/value pair 'Ca ...
r = sqrt(x.^2+y.^2) + eps; sinc_data = sin(r)./r; % Create a plot in the axes. current_data = peaks_data; surf(current_data); % ...
hcontour = uicontrol('Style','pushbutton',... 'String','Contour','Position',[315,135,70,25],... 'Callback',@contourbutton_Callba ...
% current data. This callback automatically has access to % current_data because this function is nested at a lower level. funct ...
(^3) In the pop-up menu, select Membrane, and then click the Mesh button. The UI displays a mesh plot of the MathWorks L-shaped ...
...
Create UIs with GUIDE 15 ...
...
What Is GUIDE? 4 ...
GUIDE: Getting Started In this section... “UI Layout” on page 4-2 “UI Programming” on page 4-2 UI Layout GUIDE is a development ...
GUIDE Preferences and Options “GUIDE Preferences” on page 5-2 “GUIDE Options” on page 5-10 5 ...
GUIDE Preferences In this section... “Set Preferences” on page 5-2 “Confirmation Preferences” on page 5-2 “Backward Compatibilit ...
Prompt to Save on Activate When you activate a UI from the Layout Editor by clicking the Run button , a dialog box informs you o ...
Prompt to Save on Export From the Layout Editor, when you select File > Export to MATLAB-file, a dialog box informs you of th ...
To make a FIG-file backward compatible, from the Layout Editor, select File > Preferences > General > MAT-Files, and th ...
The following topics describe the preferences in this dialog: “Show Names in Component Palette” on page 5-6 “Show File Extensio ...
Show File Extension in Window Title Displays the FIG-file file name with its file extension, .fig, in the Layout Editor window t ...
From the panel you can: Watch a 5-minute overview of the App Designer development environment. Learn more about the feature dif ...
See Also Related Examples “GUIDE Options” on page 5-10 “Migrating GUIDE Apps to App Designer” on page 14-6 See Also ...
GUIDE Options In this section... “The GUI Options Dialog Box” on page 5-10 “Resize Behavior” on page 5-11 “Command-Line Accessib ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf