MATLAB Creating Graphical User Interfaces

(Barry) #1

6 Lay Out a UI Using GUIDE


The check box accommodates only a single line of text. If you specify a component
width that is too small to accommodate the specified String, MATLAB software
truncates the string with an ellipsis.


  • Create the check box with the box checked by setting the Value property to the value
    of the Max property (default is 1 ). Set Value to Min (default is 0 ) to leave the box
    unchecked. Correspondingly, when the user clicks the check box, the software sets
    Value to Max when the user checks the box and to Min when the user clears it.

  • If you want to set the position 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.


Edit Text

To create an edit text component that displays the initial text Enter your name here,
as shown in this figure:
Free download pdf