User`s guide
10 Examples of GUIDE GUIs
The Show grid check box toggles the Visible property of the graticule
surface object. The
axes1_CreateFcn initializes the graticule and then hides
it until the user selects this option.
The Spin button’s callback reads the Make movie check box v alue to
accumulate movie frames and saves the movie to a MAT-file when rotation is
stopped or after one full revolution, whichever comes first. (The user must
select Make movie before spinning the g lobe.)
The following sections describe the interactive techniques used in the GUI.
Summary of globegui Functions
GUIDE generates the following create functions and callbacks in the
globegui GUI. Most of these functions are customized for this application. If
you are reading this page in the MATLAB Help Browser, click a ny function
name to scroll to it in the Editor.
Function
Function Behavior
globegui
Initializes the GU I’s framew ork (not
customized)
globegui_OpeningFcn
Initializes the GUI’s handles
structure (not customized)
globegui_OutputFcn
Specifies what is written to the
Command Window (not customized)
spinstopbutton_Callback
Executes and halts animation,
creates movie file
quitbutton_Callback
Exits the GUI by closing the figure
spinstopbutton_CreateFcn
Assigns button label strings a nd
saves to handles structure
axes1_CreateFcn
Initializes axes and colormap,
creates surface and light objects,
displays globe
sunazslider_Callback
Changes azimuth of light source as
user moves slider
10-20