User`s guide
About the Simple Programmatic GUI Example
The next topic, “Functions for the Simple Programmatic GUI” on page 3-3,
summarizes the functions used to create this e xample GUI.
Subsequent topics guide you through the process of creating the GUI. This
process b egins with “Create the Simple Programmatic GUI Code File” on page
3-5. We recommend that you c reate the GUI for yourself.
View Simple Programmatic GUI Code File
If you a re reading this in the MATLAB Help browser, you can click the
following links to display the example GUI and its code file.
Note The following links execute MATLAB commands and are designed to
work w ithin the MATLAB Help brow ser. If you are reading this online or
in PDF, you should go to the corresponding section in the MATLAB Help
Browser to use the links.
• ClickheretodisplaytheexampleGUI.
• Click here to display the GUI code file in the MATLAB Editor.
Functions for the Simple Programmatic GUI
Almost all MATLAB functions work in GUIs. Many functions add components
to GUIs or modify their behavior, others assist in laying out GUIs, and still
others manage data within GUIs. This topic describes required and optional
functions used to construct the example GUI and functions that it calls when
it runs. Click any function name to read its documentation.
MATLAB Functions Used to Create the Simple Programmatic GUI
Function Description
align
Align GUI components such as user interface
controls and axes.
axes
Create axes objects.
figure
Create figure objects. A GUI is a figure object.
3-3