User`s guide

GUI for Animating a 3-D View (GUIDE)
ThestateoftheShow grid button is initially off, causing the graticule not
to display. Show grid toggles the mesh object’s
Visible property.
As mentioned e arlier, enlarging the graticule by 2 percent before plotting
prevents the terrain surface from obscuring it.
Orient the Globe and Graticule
The globe and graticule rotate as if they w ere one object, under the control
of a pair of
hgtransform objects. Within the f igure, the HG objects are set
up in this hierarchy.
Uipanel
Axes
rotate
xform
globe
surface
graticule
surface
Light
tilt
xform
Inserted
objects
HG Hierarchy for the Example
The tilt transform applies a rotation about the x-axis of 0.5091 radians
(equal to 23.44 degrees, the inclination of the Earth’s axis of rotation).
The rotate transform initially has a default identity matrix. The
spinstopbutton_Callback subsequently updates the matrix to rotate about
the z-axis by 0.01745329252 radians (1 degree) per iteration, using the
following code:
az = az + 0.01745329252;
10-27