value = getappdata(h, name)
s = getappdata(h)
| Parameter | Description |
|---|---|
| h | a graphics object. |
| name | a string: the data name. |
| Parameter | Description |
|---|---|
| value | the stored value, or [] if the name is not set. |
| s | a structure of all application data when no name is given. |
getappdata returns the application-defined data named name stored on h, or all of it as a structure when name is omitted.
f = figure();
setappdata(gca, 'state', 42);
getappdata(gca, 'state')
| Version | Description |
|---|---|
| 2.0.0 | Initial version. |