Programming a GUI
After laying out the GUI and setting component properties, the
next step is to program the GUI. You program the GUI by coding one
or more callbacks for each of its components. Callbacks are
functions that execute in response to some action by the user. A typical
action is clicking a push button.
A GUI's callbacks are found in an M-file that GUIDE generates
automatically. GUIDE adds templates for the most commonly used callbacks
to this M-file, but you may want to add others. Use the M-file Editor
to edit this file.
The following figure shows the Callback template for a push
button.

To learn more about programming a GUI, see Creating a Simple GUI with GUIDE in the MATLAB Creating
Graphical User Interfaces documentation.
 | Laying Out a GUI | | Desktop Tools and Development Environment |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit