uicheckbox
Create check box component.
📝Syntax
h = uicheckbox()
h = uicheckbox(parent)
h = uicheckbox(..., propertyName, propertyValue)
📥Input Arguments
Parameter Description
parent parent container.
propertyName, propertyValue name-value pairs.
📤Output Arguments
Parameter Description
h UI component object.
📄Description

cbx = uicheckbox creates a check box with a logical Value, a Text label, WordWrap, fonts and a ValueChangedFcn callback (event data: Value, PreviousValue).

💡Examples
Captured UI component for the help image.
f = uifigure('Visible', 'off', 'Name', 'Check box', 'Position', [100 100 420 260]);
cb = uicheckbox(f, 'Text', 'Enable alerts', 'Value', true, 'Position', [130 120 170 24]);
drawnow();
Example illustration
uicheckbox
f = uifigure();
cbx = uicheckbox(f, 'Text', 'Accept', 'Value', true, 'ValueChangedFcn', @(s, e) disp(e.Value));
🔗See Also
uifigure
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub