uiswitch
Create slider switch, rocker switch, or toggle switch component
Syntax
Description
creates a slider switch in
a new figure and returns the s
= uiswitchSwitch
object.
MATLAB® calls the uifigure
function to create the
figure.
creates a switch of the specified style. The switch style can be
s
= uiswitch(style
)"slider"
, "rocker"
, or
"toggle"
.
specifies switch properties using one or more name-value arguments in addition to
any of the input argument combinations in the previous syntaxes. For example,
sw
= uiswitch(___,Name,Value
)uiswitch("FontWeight","bold")
creates a switch with bold
label text.