Creating Graphical User Interfaces    

Managing GUI Data with the Handles Structure

GUIDE provides a mechanism, called the handles structure, for storing and retrieving shared data using the same structure that contains the GUI component handles. The handles structure, which contains the handles of all the components in the GUI, is passed to each callback in the GUI M-file. Therefore, this structure is useful for saving any shared data. The following example illustrates this technique.

If you are not familiar with MATLAB structures, see Structures for more information.

This section covers the following topics:


  Input and Output Arguments Example: Passing Data Between Callbacks