
3 Creating a GUI Programmatically
3-4
Function Summary
MATLAB provides a suite of functions for creating GUIs. This topic introduces
you to the functions you need to create the example GUI shown in the following
figure.
Functions Used to Create the Simple GUI
Other MATLAB Functions Used in the GUI
Function Description
align
Align user interface controls and axes.
axes
Create axes objects.
figure
Create figure objects. A GUI is a figure object.
movegui
Move GUI figure to specified location on screen.
uicontrol
Create user interface control objects, such as a push
buttons, static text, and pop-up menus.
Function Description
contour
Contour graph of a matrix
eps
Floating point relative accuracy.
get
Query object properties.
membrane
Generates the MATLAB logo.
mesh
Mesh plots.
meshgrid
Generate X and Y arrays for 3-D plots.
peaks
Example function of two variables.
set
Set object properties.
Commentaires sur ces manuels