Creating Graphical User Interfaces |
|
Exporting a GUI to a Single M-File
You can export a GUI from GUIDE to a single M-file that does not require a FIG-file. This enables you to
- View the layout code for the GUI
- Run the GUI in MATLAB 6.1
To export your GUI, do the following steps:
- Save the GUI in GUIDE, if you have not already done so.
- Select Export from the File menu. If you changed the GUI since you last saved it, this opens a dialog informing you that exporting will save changes to your figure and M-file, and asking if you want to continue.
- Click OK in the confirmation dialog.
- Save the exported M-file in the Save as dialog. By default, GUIDE gives the exported M-file the name of the GUI M-file with
_export
appended.
Note
If you save a large data set in the GUI figure or a uicontrol, GUIDE might also export a MAT-file containing the data in addition to exporting an M-file. The name of the MAT-file is the same as the exported M-file except for the extension .mat .
|
| Changing the Name of Callback Properties | | GUIDE Layout Tools | |