FUNCTION REFERENCE

gcbo

Return handle of the object whose callback is currently executing.

Return handle of the object whose callback is currently executing.

Syntax

h = gcbo

Returns the source UI component or uicontrol handle inside a running callback, or [] when no callback is executing.

Example

isempty(gcbo)

Differences from MATLAB: Two-output form [h, fig] = gcbo is not supported yet; use gcbf for the enclosing figure.

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