
vii
Generate FIG-File and MATLAB File . . . . . . . . . . . . . 5-10
Generate FIG-File Only . . . . . . . . . . . . . . . . . . . . . . . 5-12
Lay Out a UI Using GUIDE
6
GUIDE Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
Access the Templates . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
Template Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3
Set the UI Window Size in GUIDE . . . . . . . . . . . . . . . . . 6-11
Prevent Existing Objects from Resizing with the
Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-11
Set the Window Position or Size to an Exact Value . . . 6-12
Maximize the Layout Area . . . . . . . . . . . . . . . . . . . . . 6-12
GUIDE Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-13
Add Components to the GUIDE Layout Area . . . . . . . . 6-17
Place Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-17
User Interface Controls . . . . . . . . . . . . . . . . . . . . . . . . 6-23
Panels and Button Groups . . . . . . . . . . . . . . . . . . . . . 6-44
Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-50
Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-54
ActiveX Component . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-65
Resize GUIDE UI Components . . . . . . . . . . . . . . . . . . 6-67
Copy, Paste, and Arrange Components . . . . . . . . . . . . . 6-70
Select Components . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-70
Copy, Cut, and Clear Components . . . . . . . . . . . . . . . . 6-71
Paste and Duplicate Components . . . . . . . . . . . . . . . . 6-71
Front-to-Back Positioning . . . . . . . . . . . . . . . . . . . . . . 6-72
Locate and Move Components . . . . . . . . . . . . . . . . . . . . 6-74
Use Coordinate Readouts . . . . . . . . . . . . . . . . . . . . . . 6-74
Drag Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-75
Use Arrow Keys to Move Components . . . . . . . . . . . . . 6-76
Set the Component's Position Property . . . . . . . . . . . . 6-76
Komentarze do niniejszej Instrukcji