Creating Graphical User Interfaces    

Saving the Layout

Once you have created the GUI layout, you can save it as a FIG-file (a binary file that saves the contents of a figure) using the Save or Save As item from the File menu. GUIDE generates the M-file automatically when you save or run the figure.

Displaying Your GUI

You can display the GUI figure using the openfig, open, or hgload command. These commands load FIG-files into the MATLAB workspace.

Generally, however, you launch your GUI by executing the M-file that is generated by GUIDE. This M-file contains the commands to load the GUI and provides a framework for the component callbacks. See Configuring the GUI M-file for more information.

Layout Editor Preferences

You can set preferences for the Layout Editor by selecting Preferences from the File menu.


  Laying Out GUIs - The Layout Editor Layout Editor Context Menus