FUNCTION REFERENCE

guidata

Store or retrieve application data associated with a figure.

Store or retrieve application data associated with a figure.

Syntax

guidata(h, data); data = guidata(h)

Associates arbitrary data with the figure containing handle h and retrieves it from any descendant handle or the figure itself.

Example

fig = figure('Visible', 'off'); guidata(fig, struct('count', 1)); d = guidata(fig); d.count; close(fig)

Differences from MATLAB: none for standard figure handle usage.

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