h = uiradiobutton()
h = uiradiobutton(parent)
h = uiradiobutton(..., propertyName, propertyValue)
| Paramètre | Description |
|---|---|
| parent | conteneur parent. |
| propertyName, propertyValue | paires nom-valeur. |
| Paramètre | Description |
|---|---|
| h | objet composant UI. |
rb = uiradiobutton(bg) crée un bouton radio dans un uibuttongroup. Le premier bouton ajouté est sélectionné. La sélection est exclusive ; les changements sont signalés par le SelectionChangedFcn du groupe. Propriétés : Value (logique), Text, WordWrap, polices.
f = uifigure('Visible', 'off', 'Name', 'Radio buttons', 'Position', [100 100 420 260]);
bg = uibuttongroup(f, 'Position', [95 55 230 150]);
r1 = uiradiobutton(bg, 'Text', 'Metric', 'Position', [25 95 120 22]);
r2 = uiradiobutton(bg, 'Text', 'Imperial', 'Position', [25 55 120 22]);
r1.Value = true;
drawnow();
f = uifigure();
bg = uibuttongroup(f, 'Title', 'Options');
rb1 = uiradiobutton(bg, 'Text', 'Premier');
rb2 = uiradiobutton(bg, 'Text', 'Second');
rb2.Value = true;
| Version | Description |
|---|---|
| 2.0.0 | version initiale |