uiradiobutton
Create radio button component
Description
creates a radio button within
a button group and returns the rb
= uiradiobuttonRadioButton
object. MATLAB® calls the uifigure
function to create the parent figure of
the button group.
specifies rb
= uiradiobutton(___,Name,Value
)RadioButton
properties using one or more
Name,Value
pair arguments. Use this option with any of the input argument
combinations in the previous syntaxes.
Examples
Input Arguments
Tips
Button groups can contain any UI component type, but can only manage the selection of radio buttons and toggle buttons.
To make your program respond when the user selects a radio button or toggle button that is inside a button group, define a
SelectionChangedFcn
callback function for theButtonGroup
. You cannot define callbacks for the individual buttons.To determine which radio button or toggle button is selected, query the
SelectedObject
property of theButtonGroup
. You can execute this query anywhere in your code.If you set the
Visible
property of a button group object to'off'
, then any child objects it contains become invisible along with the parentButtonGroup
. However, theVisible
property value of each child object remains unaffected.