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 in the specified parent container. The parent can be a s = uiswitch(parent)Figure object or one of its child containers.
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.






