User`s guide

GUI for Animating a 3-D View (GUIDE)
The GUI includes three uipanels that you can barely see in this figure because
they are entirely black. Using uipanels helps the graphic functions work
more efficiently.
The axes CreateFcn (
axes1_CreateFcn) initializes the graphic objects. It
executes once, no m atter how many times the GUI is opened.
The Spin button’s callback (
spinstopbutton_Callback), which contains a
while loop for rotating the spherical surface, conducts the animation.
The two sliders allow the user to change light direction during animation and
function independently, but they query one another’s value because both
parameters are needed to specify a view.
10-19