User`s guide

10 Examples of GUIDE GUIs
the link in the Callback column. You cannot access the timer object from
within GUIDE; it is created programmatically.
Component
Tag
Description
Callback
push button
startbtn
Starts/resumes
timer that adds
noise to the
surface plot,
startbtn_
Callback
push button
stopbtn
Halts timer to
stop plot from
updating.
stopbtn_
Callback
axes display
Displays a
changing surface
plot.
n/a
slider
periodsldr
Changes period
of timer between
its
Min of 0.01 s.,
and its
Max of 2
s., a nd updates a
label displaying
the period value.
periodsldr_
Callback
timer
timer
An object that
keeps time by
executing a
callback when
each period
elapses,
update_
display
The components have tags, strings, and positions specified in GUIDE, but
are not otherwise modified.
The GUI also has opening and closing functions containing user code:
ex_guide_timergui_OpeningFcn C reates the timer object and initializes
the slider andthe slider label.
figure1_CloseRequestFcn Stops and destroys the timer object, and
then destroys the figure.
10-108