FUNCTION REFERENCE

uibutton

Create push button or state button component.

Create push button or state button component.

Syntax

b = uibutton

Syntax

b = uibutton(parent, Name, Value)

Syntax

b = uibutton(parent, style, Name, Value)

Creates a push button ('push', default; Text, ButtonPushedFcn) or a toggle state button ('state'; Text, Value, ValueChangedFcn), with Position, Layout, Enable, Visible, FontSize, BackgroundColor, Tooltip, Tag, and UserData.

Example

fig = uifigure; b = uibutton(fig, 'Text', 'Run'); b.Text; delete(fig)

Differences from MATLAB: Icon, IconAlignment, Interpreter, and font weight/colour properties are not supported yet.

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