MATLAB Creating Graphical User Interfaces

(Barry) #1

6 Lay Out a UI Using GUIDE


To display the & character in a label, use two & characters in the string. The words
remove, default, and factory (case sensitive) are reserved. To use one of these as a
label, prepend a backslash (\) to the string. For example, \remove yields remove.

If the width of the component is too small to accommodate one or more of the specified
strings, MATLAB software truncates those strings with an ellipsis.


  • Specify selection by using the Value property together with the Max and Min
    properties.

    • To select a single item when the component is created, set Value to a scalar that
      indicates the index of the selected list item, where 1 corresponds to the first item
      in the list.

    • To select more than one item when the component is created, set Value to a vector
      of indices of the selected items. Value = [1,3] results in the following selection.



Free download pdf