User`s guide
10 Examples of GUIDE GUIs
• 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.
GUI-building techn iques illu strated i n th is exam p le in clu de:
• Changing the label (string) of a button every time it is clicked.
• Storing data in the
handles structure and using it to control callback
execution.
• Enabling a callback to interrupt its own execution.
• Controlling scene lighting with tw o sliders that communicate.
In addition, two of the callbacks illustrate how to construct and manipulate
theappearanceof3-Dviews.
View and Run the 3-D Globe GUI
If you are reading this document in the M ATLAB Help browser, you can
accesstheexampleFIG-fileandcodefilebyusingeitheroftwosetsoflinks
listed below. If you are reading this on the Web or in PDF form, go to the
corresponding section in the MATLAB Help Browser to use the links.
If you intend to modify the layout or code of this GUI example, first s ave
copies of its code file and FIG-file to your current folder. (You need write
access to your current folder to do this.) Follow these steps to copy the
example files to your current folder, and then open them:
1 Click here to copy the files to your current folder.
2 Type guide gl obe gui or click here to open the FIG-file in G UID E.
3 Type edit glo begu i or click here to open the code file in the Editor.
You can view the properties of any component by double-clicking it in the
Layout Editor to open the Property Inspector for it. You can modify either
10-16