Create user interface control
Use this function only with apps created using the
figure
function or with GUIDE. App Designer is the
recommended environment for building apps. For more information, see GUIDE Migration Strategies.
c = uicontrol
creates a push button (the default user interface
control) in the current figure, and returns the UIControl
object. If a
figure does not exist, then MATLAB® calls the figure
function to create one.
c = uicontrol(
creates a user
interface control with property values specified using one or more name-value pair
arguments. For example, Name,Value
)'Style','checkbox'
creates a check
box.
c = uicontrol(
creates the default
user interface control in the specified parent, instead of defaulting to the current
figure.parent
)
c = uicontrol(
specifies the parent for the user interface control and one or more name-value pair
arguments.parent
,Name,Value
)