FUNCTION REFERENCE

Switch

Two-state switch UI control object returned by uiswitch.

Two-state switch UI control object returned by uiswitch.

Syntax

sw = uiswitch(parent)

Syntax

sw = uiswitch(parent, Name, Value)

Holds Items, ItemsData, Value, Orientation, ValueChangedFcn, Position, Layout, Enable and Visible properties.

Example

fig = uifigure('Visible', 'off'); sw = uiswitch(fig); sw.Value; delete(fig)

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