MATLAB Creating Graphical User Interfaces

(Barry) #1

9 Examples of GUIDE UIs


Animation with Slider Controls in GUIDE


In this section...
“About the Example” on page 9- 68
“Design the 3-D Globe UI” on page 9- 69
“Graphics Techniques Used in the 3-D Globe UI” on page 9- 74

About the Example


This example shows how to create a UI with 3-D axes in which the Earth spins on its
axis. It accepts no inputs, but it reads a matrix of topographic elevations for the whole
Earth. The UI provides controls to perform these tasks:


  • Start and stop the rotation.

  • Change lighting direction.

  • Display a latitude-longitude grid (or graticule).

  • Save the animation as a movie in a MAT-file.

  • Exit the application.

Free download pdf