guide

Create or edit UI file in GUIDE

App Designer is the recommended environment for building apps. For more information, see Migrating GUIDE Apps to App Designer.

Syntax

guide
guide(filename)
guide(figs)

Description

guide launches GUIDE, a UI design environment. From the Quick Start dialog you can choose to open a previously created UI or create a new one using one of the templates.

example

guide(filename) 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.

example

guide(figs) 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.

Examples

collapse all

Open an existing figure from your MATLAB path.

guide("feedback.fig")

Create two figures and assign them to variables f1 and f2. Then, open the two existing figures in separate instances of GUIDE.

f1 = figure;
f2 = figure;

guide([f1 f2]);

Input Arguments

collapse all

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 optional.

Example: guide("output.fig")

Example: guide('testModule')

Example: guide("C:\Documents\Controls\power.fig")

Existing 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 figure function.

Example: guide([f1 f2]);

Introduced before R2006a