9 Examples of GUIDE UIs
In the GUIDE Layout Editor, the UI looks like this.
The UI 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 matter how many times the UI is opened.
The Spin button's callback (spinstopbutton_Callback), which contains a while loop
for rotating the spherical surface, conducts the animation.