MATLAB Creating Graphical User Interfaces

(Barry) #1
Add Components to the GUIDE Layout Area

Property Value Description
Max Scalar. Default is 1. Maximum value.
Interpretation depends on the
type of component.
Min Scalar. Default is 0. Minimum value.
Interpretation depends on the
type of component.
Position 4-element vector: [distance
from left, distance from
bottom, width, height].

Size of the component and its
location relative to its parent.

String String. Can also be a cell
array or character array of
strings.

Component label. For list
boxes and pop-up menus it is
a list of the items.
Units characters, centimeters,
inches, normalized,
pixels, points. Default is
characters.

Units of measurement used
to interpret the Position
property vector

Value Scalar or vector Value of the component.
Interpretation depends on the
type of component.

For a complete list of properties and for more information about the properties listed in
the table, see Uicontrol Properties.


Push Button


To create a push button with label Button 1, as shown in this figure:

Free download pdf