setappdata
Store application-defined data on an object.
📝Syntax
setappdata(h, name, value)
📥Input Arguments
Parameter Description
h a graphics object.
name a string: the data name.
value any value to store.
📄Description

setappdata stores the named value as application-defined data on the object h, retrievable with getappdata.

💡Examples
f = figure();
setappdata(gca, 'state', 42);
getappdata(gca, 'state')
🔗See Also
getappdataisappdatarmappdata
🕔Version History
Version Description
2.0.0 Initial version.
Edit this page on GitHub