
Saving the GUI Layout
2-17
Saving the GUI Layout
When you save a GUI, GUIDE creates two files, a FIG-file and an M-file. The
FIG-file, with extension
.fig, is a binary file that contains a description of the
layout. The M-file, with extension
.m, contains the code that controls the GUI.
1 Save and activate your GUI by selecting Run from the Tools menu.
2 GUIDE displays the following dialog box. Click Yes to continue.
3 GUIDE opens a Save As dialog box in your current directory and prompts
you for a FIG-file name.
4 Browse to any directory for which you have write privileges, and then enter
the filename
simple_gui for the FIG-file. GUIDE saves both the FIG-file
and the M-file using this name.
5 If the directory in which you save the GUI is not on the MATLAB path,
GUIDE opens a dialog box, giving you the option of changing the current
Kommentare zu diesen Handbüchern