MATLAB Creating Graphical User Interfaces

(ff) #1

(^1) Use the Property Inspector to modify the appropriate properties. Open the Property
Inspector by selecting View > Property Inspector or by clicking the Property
Inspector button.
2 In the layout area, select the component you are defining.
Subsequent topics describe commonly used properties of user interface controls and offer
a simple example for each kind of control:



  • “Commonly Used Properties” on page 6-19

  • “Push Button” on page 6-20

  • “Slider” on page 6-22

  • “Radio Button” on page 6-24

  • “Check Box” on page 6-26

  • “Edit Text” on page 6-27

  • “Static Text” on page 6-29

  • “Pop-Up Menu” on page 6-31

  • “List Box” on page 6-33

  • “Toggle Button” on page 6-36


Commonly Used Properties


The most commonly used properties needed to describe a user interface control are
shown in the following table. Instructions for a particular control may also list properties
that are specific to that control.


Property Value Description
Enable on, inactive, off. Default
is on.

Determines whether the
control is available to the
user
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.

Add Components to the GUIDE Layout Area
Free download pdf