FUNCTION REFERENCE

StateButton

Toggle state button UI control object returned by uibutton with style 'state'.

Toggle state button UI control object returned by uibutton with style 'state'.

Syntax

b = uibutton(parent, 'state')

Syntax

b = uibutton(parent, 'state', Name, Value)

Holds Text, Value, ValueChangedFcn, Position, Layout, FontSize, BackgroundColor, Tooltip, Enable and Visible properties.

Example

fig = uifigure('Visible', 'off'); b = uibutton(fig, 'state', 'Text', 'Hold', 'Value', true); b.Value; delete(fig)

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.