Value of application-defined data
value = getappdata(h,'name')
values = getappdata(h)
value = getappdata(h,'name') gets the value of the application-defined data with the name specified by name, in the object with handle h. If the application-defined data does not exist, the MATLAB® software returns an empty matrix in value.
Application-defined data is data that is meaningful to or defined by your application which you attach to a figure or any GUI component (other than ActiveX® controls) through its AppData property. Only Handle Graphics® MATLAB objects use this property.