FUNCTION REFERENCE

gcbf

Return handle of the figure containing the object whose callback is currently executing.

Return handle of the figure containing the object whose callback is currently executing.

Syntax

f = gcbf

Returns the enclosing figure handle inside a running callback, or [] when no callback is executing.

Example

isempty(gcbf)

Differences from MATLAB: Only tracks callbacks dispatched by UI components and uicontrols.

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