MATLAB Creating Graphical User Interfaces

(ff) #1

  • If you want to set the location or size of the component to an exact value, then modify
    its Position property.


The slider component provides no text description or data entry capability. Use a
“Static Text” on page 6-29 component to label the slider. Use an “Edit Text” on page
6-27 component to enable a user to input a value to apply to the slider.

NoteOn Mac platforms, the height of a horizontal slider is constrained. If the height
you set in the position vector exceeds this constraint, the displayed height of the slider
is the maximum allowed. The height element of the position vector is not changed.

Radio Button

To create a radio button with label Indent nested functions, as shown in this figure:


  • Specify the radio button label by setting the String property to the desired label, in
    this case, Indent nested functions.


6 Lay Out a UI Using GUIDE

Free download pdf