setappdata(h, name, value)
| Parameter | Description |
|---|---|
| h | a graphics object. |
| name | a string: the data name. |
| value | any value to store. |
setappdata stores the named value as application-defined data on the object h, retrievable with getappdata.
f = figure();
setappdata(gca, 'state', 42);
getappdata(gca, 'state')
| Version | Description |
|---|---|
| 2.0.0 | Initial version. |