Specifications

1 Getting Started with GUIDE
1-10
Programming the GUI M-file
After laying out your GUI, you can program the GUI M-file using the M-file
editor. GUIDE automatically generates this file from your layout the first time
you save or run the GUI. The GUI M-file
Initializes the GUI
Contains code to perform tasks before the GUI appears on the screen, such
as creating data or graphics
Contains the callback functions that are executed each time a user clicks a
GUI component
Initially, each callback contains just a function definition line. You then use the
M-file editor to add code that makes the component function the way you want
it to. To open the M-file, click the M-file Editor icon on the Layout Editor
toolbar. The following figure shows the M-file for the GUI with Axes and Menu
template.