(To be removed) Create or edit UI file in GUIDE
The GUIDE environment will be removed in a future release. For more information, see Compatibility Considerations.
guide opens GUIDE, a UI design environment. The GUIDE environment
provides a set of tools for creating user interfaces (UIs). These tools simplify the process
of laying out and programming UIs.
guide( opens the specified
MATLAB® figure file for editing in GUIDE. If the figure file is not on the MATLAB path, specify the full path. Only one
filename can be
opened at a time.
guide( opens each of the
Figure objects in
figs in a separate copy of the
GUIDE design environment. Use this syntax if you want to edit one or more preexisting
figures in GUIDE that have been saved to variables.
Open Figure in GUIDE
Open an existing figure from your MATLAB path.
filename — File name or path of saved figure
character vector | string scalar
File name or path of saved figure, specified as a character vector or string scalar.
Specify the full path if the figure is not on your MATLAB path. Including
.fig in the file name is
figs — Existing
Figure object | array of
Figure objects, specified as a single
Figure object or an array of
Figure objects. Use
this argument to open one or more previously saved figures in separate instances of
GUIDE. GUIDE creates figures with the
Version HistoryIntroduced before R2006a
R2021a: GUIDE will be removed
Warns starting in R2021a
The GUIDE environment and the
guide function will be removed in a
After GUIDE is removed, most existing GUIDE apps will continue to run in MATLAB but will not be editable using the drag-and-drop environment in GUIDE. To continue editing an existing GUIDE app and help maintain its compatibility with future MATLAB releases, use one of the suggested migration strategies listed in the table.
|App Development||Migration Strategy||How to Migrate|
|Occasional editing||Manage your app layout and code using MATLAB functions by exporting your app to a MATLAB program file||Open the app in GUIDE and select File > Export to MATLAB-file|
|Ongoing development||To continue editing the layout of your app interactively, migrate your app to App Designer. This option also lets you take advantage of new app building features.||Use the GUIDE to App Designer Migration Tool for MATLAB on |
App Designer is the recommended app development environment in MATLAB. To create new apps interactively, use the
function instead. For more information, see Develop Apps Using App Designer.
To learn more about migrating apps, see GUIDE Migration Strategies.