Specifications
ii
2
MATLAB GUIs
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
Creating GUIs with GUIDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
GUI Development Environment . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
Editing Version 5 GUIs with Version 6 GUIDE . . . . . . . . . . . 2-6
Selecting GUIDE Application Options . . . . . . . . . . . . . . . . . . . 2-8
Configuring the Application M-File . . . . . . . . . . . . . . . . . . . . . . 2-8
Resize Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-10
Making Your GUI Nonresizable . . . . . . . . . . . . . . . . . . . . . . . . 2-10
Allowing Proportional GUI Resizing . . . . . . . . . . . . . . . . . . . . . 2-10
User-Specified Resize Operation . . . . . . . . . . . . . . . . . . . . . . . . 2-11
Command-Line Accessibility . . . . . . . . . . . . . . . . . . . . . . . . . . 2-12
Access Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-12
Figure Properties That Control Access . . . . . . . . . . . . . . . . . . . 2-12
Using findobj . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-13
Electing to Generate Only the FIG-File . . . . . . . . . . . . . . . . . 2-14
The Generated M-File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-15
Callback Function Names and Arguments . . . . . . . . . . . . . . . . 2-15
Application Allows Only One Instance to Run . . . . . . . . . . . . . 2-18
Using the System Background Colors . . . . . . . . . . . . . . . . . . . 2-18
Waiting for User Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-20
Renaming Application Files and Tags . . . . . . . . . . . . . . . . . . 2-21
Using Save As . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-21
Getting Everything Right . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-21
Changing Component Tag Properties . . . . . . . . . . . . . . . . . . . . 2-21
Changing the Name of Callback Subfunctions . . . . . . . . . . . . . 2-22
Changing the Name of the M-File and FIG-File . . . . . . . . . . . 2-24