FUNCTION REFERENCE

UIControl

Classic user-interface control object returned by uicontrol.

Classic user-interface control object returned by uicontrol.

Syntax

c = uicontrol(parent, Name, Value)

Syntax

c = uicontrol(Name, Value)

Holds Style, String, Value, Min, Max, Position, Units, Callback, Enable, Visible, Tag, UserData and Parent properties for classic pushbutton, togglebutton, edit, text, slider, checkbox, radiobutton, popupmenu and listbox controls.

Example

fig = figure('Visible', 'off'); c = uicontrol(fig, 'Style', 'pushbutton', 'String', 'OK'); c.String; close(fig)

Differences from MATLAB: Supports pushbutton, togglebutton, edit, text, slider, checkbox, radiobutton, popupmenu and listbox styles; reparenting after creation is not supported yet.

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