Create toggle button component
Use only with App Designer or figures
created with the uifigure
function. When
using GUIDE or the figure
function, create a
radio button using uicontrol
.
creates
a toggle button within a button group in a UI figure and returns the
button handle.tb
= uitogglebutton
creates
a toggle button within the specified parent button group. The tb
= uitogglebutton(parent
)parent
button
group must be within UI figure window, or within a tab, panel, or
button group that is within a UI figure window.
specifies
toggle button properties using one or more tb
= uitogglebutton(___,Name,Value
)Name,Value
pair
arguments. Use this option with any of the input argument combinations
in the previous syntaxes.