Add Components to the GUIDE Layout Area
- Specify the text to be displayed when the edit text component is created by setting the
String property to the desired string, in this case, Enter your name here.
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.
- To enable multiple-line input, specify the Max and Min properties so that their
difference is greater than 1. For example, Max = 2, Min = 0. Max default is 1 , Min
default is 0. MATLAB software wraps the string and adds a scroll bar if necessary. On
all platforms, when the user enters a multiline text box via the Tab key, the editing
cursor is placed at its previous location and no text highlights.