MATLAB Creating Graphical User Interfaces

(Barry) #1

14 Examples of UIs Created Programmatically


Axes, Menus, and Toolbars in Programmatic UIs


In this section...
“About the Example” on page 14- 2
“View the Example Code” on page 14- 3
“Generate the Graphing Commands and Data” on page 14- 3
“Create the UI and Its Components” on page 14- 4
“Initialize the UI” on page 14- 7
“Define the Callbacks” on page 14- 8
“Updating the Plot” on page 14- 11

About the Example


When you run this example program, it initially displays a plot of five random numbers
generated by the MATLAB rand(5) command.
Free download pdf