**4.3 Program the GUI**

GUIDE automatically generates an M-file that controls how the GUI operates. The M-file initializes the GUI and contains a framework for the most commonly used callbacks for each component the commands that execute when a user clicks a GUI component. Using the Mfile editor, we can add code to the callbacks to perform the functions the user want. Fig. 22 shows the structure of the object, Fig. 23 shows the different Object contained in a GUI.

Fig. 22. Object structure

Fig. 23. Different Object of the GUIDE
