Creating Graphical User Interfaces |
Application data provides an alternative to GUI data (see Managing GUI Data with the Handles Structure) for applications to save and retrieve data associated with an object. The data is stored as name/value pairs. Application data enables you to create what are essentially user-defined properties for an object. You can define application data for your GUI by associating name/value pairs with the GUI figure object.
Functions for Accessing Application Data
The following functions provide access to application data.
Function |
Purpose |
---|---|
setappdata |
Specify named application data |
getappdata |
Retrieve named application data |
isappdata |
True if the named application data exists |
rmappdata |
Remove the named application data |
Note
A GUIDE-generated GUI M-file uses the guidata function to store the handles structure. For such M-files, you must always use the guidata function to access the handles structure. See Managing GUI Data with the Handles Structure.
|
Managing GUI Data with the Handles Structure | Designing for Cross-Platform Compatibility |
© 1994-2005 The MathWorks, Inc.