Creating Graphical User Interfaces    

Using GUIDE Templates

GUIDE provides several templates, which simple examples that you can modify to create your own GUIs. The templates are fully functional GUIs: their callbacks are already programmed. You can view the code for these callbacks to see how they work, and then modify the callbacks for your own purposes.

You can access the templates in two ways:

Starting GUIDE displays the GUIDE Quick Start dialog as shown in the following figure.

The Quick Start dialog gives you two options:

The preceding figure shows the Quick Start dialog with the Create New GUI tab selected. Selecting a template in the left pane displays a preview in the right pane. Clicking OK opens the GUI template in the Layout Editor. If you select Save on startup as and type in name in the field to the right, GUIDE saves the GUI before opening it in the Layout Editor. If you choose not to save the GUI at this point, GUIDE prompts you to save it the first time you run the GUI.

GUIDE provides four templates, which are described in the following sections:

To view the M-file for any of these templates, open the template in the Layout Editor and click the M-file editor icon on the toolbar.


  Editing Version 5 GUIs with Version 6 GUIDE Blank GUI