MATLAB Creating Graphical User Interfaces

(Barry) #1

6 Lay Out a UI Using GUIDE



  • Specify the push button label by setting the String property to the desired label, in
    this case, Button 1.


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.

The push button accommodates only a single line of text. If you specify more than
one line, only the first line is shown. If you create a push button that is too narrow to
accommodate the specified String, MATLAB software truncates the string with an
ellipsis.
Free download pdf