Creating Graphical User Interfaces Previous page   Next Page

Understanding the GUI M-File

The GUI M-file generated by GUIDE controls the GUI and determines how it responds to a user's action, such as pressing a push button or selecting a menu item. The M-file contains all the code needed to run the GUI, including the callbacks for the GUI components. While GUIDE generates the framework for this M-file, you must program the callbacks, which are subfunctions of the M-file, to perform the functions you want them to.

This section explains the overall structure of the M-file. The section covers the following topics:

To learn more about programming callbacks, see Subfunctions in the online MATLAB documentation.


Previous page  Programming GUIs Sharing Data with the Handles Structure Next page

© 1994-2005 The MathWorks, Inc.