uibutton
Create push button or state button component
Syntax
Description
creates a
push button in a new figure and returns the
btn
= uibuttonButton
object. MATLAB® calls the uifigure
function to
create the figure.
creates a button of the specified style. The button style can be
btn
= uibutton(style
)"push"
or "state"
.
creates a button with properties specified by one or more name-value
arguments. For example, specify the button background color using
the btn
= uibutton(___,Name,Value
)BackgroundColor
property. Use this option
with any of the input argument combinations in the previous
syntaxes.