Skip to content

guidata

gui · scripts/gui/guidata.m

: data = guidata (h)
: guidata (h, data)

Store or retrieve one value of GUI data for the figure that contains the graphics object h (a figure or any of its descendants).

Without data the stored value is returned, [] if nothing has been stored. With data any value is stored in the application data of the figure, replacing the previous one.