Creating Graphical User Interfaces    

An Address Book Reader

This example implements a GUI that displays names and phone numbers, which it reads from a MAT-file. You can add new entries, which are then saved to the same MAT-file or to a new one.

Techniques Used in This Example

This example demonstrates the following GUI programming techniques:

View the Layout and Application M-File

Use these links to display the FIG-file in the Layout Editor and the application M-file in the MATLAB Editor. This enables you to see the values of all component properties and to explore how the components are assembled to create the GUI. You can also see the complete code listing.

Click here to display the layout in GUIDE.

Click here to display the application M-file in the editor.

Managing Global Data

One of the key techniques illustrated in this example is how to keep track of information and make it available to the various subfunctions. This information includes:

The descriptions of the subfunctions that follow illustrate how to save and retrieve information from the handles structure. See Managing GUI Data for background information on this structure.


 The List Box Callback Launching the GUI