MATLAB Creating Graphical User Interfaces

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


  • If you want to set the location or size of the component to an exact value, then modify
    its Position property. See “Locate and Move Components” on page 6-74 and
    “Resize GUIDE UI Components” on page 6-67 for details.


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

Note:On 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.

Free download pdf