MATLAB Creating Graphical User Interfaces

(Barry) #1

7 Save and Run a GUIDE UI


Save a GUIDE UI


In this section...
“Save a UI” on page 7- 2
“Create a Backward Compatible GUIDE Fig-File” on page 7- 2
“Append New Callbacks to an Existing GUIDE Code File” on page 7- 3

Save a UI


To save a UI in GUIDE, use any of the following methods:


  • On the Layout Editor toolbar, click Save or Run.

  • On the Layout Editor menu bar, select the FileSave or Save as options


Note:GUIDE UIs cannot run correctly from a private folder.

Create a Backward Compatible GUIDE Fig-File


FIG-files that are created or modified with MATLAB 7.0 or a later MATLAB version, are
not automatically compatible with Version 6.5 and earlier versions.

Perform these steps to make a FIG-file backward compatible:

1 From the Layout editor, select File > Preferences.
2 Select MATLAB > General > MAT-Files.
3 Select MATLAB Version 5 or later (save -v6)

Note:


  • Because button groups, panels, and tables were introduced in MATLAB 7, you should
    not use them in UIs that you expect to run in earlier MATLAB versions.

  • The -v6 option will be removed in a future version of MATLAB

Free download pdf