Use this function to retrieve data stored using the setappdata function. Both of these functions provide a convenient way to
share data between callbacks or between separate UIs.
obj — Graphics object containing the value figure | uipanel | uibuttongroup | uicontrol | ...
Graphics object containing the value, specified as any graphics object.
This is the same graphics object passed to setappdata
during the storage operation.
name — Name identifier character vector
Name identifier, specified as a character vector. This is the same name
identifier passed to setappdata during the storage
operation.
Stored value, returned as the same value and data type that was originally
stored.
vals — All values stored in the graphics object with name identifiers structure
All values stored in the graphics object with name identifiers, returned
as a structure. Each field in the structure corresponds to a stored value.
The field names of the structure correspond to the name identifiers assigned
when each value was stored.