Value of application-defined data


value = getappdata(h,name)
values = getappdata(h)


value = getappdata(h,name) returns the value of a MATLAB® variable stored in a GUI. The first argument, h, is a handle to the component that is associated with the data. The second argument, name, is a string that identifies the name of the data. The values of h and name must match those passed to setappdata when you store the data.

values = getappdata(h) returns all variable data associated with the component having the handle, h.

    Note:   h can be a handle to any GUI component except an ActiveX® component.

Was this topic helpful?