Creating Graphical User Interfaces | ![]() ![]() |
Accessing Workspace Variables from a List Box
This GUI uses a list box to display workspace variables, which the user can then plot.
Techniques Used in This Example
This example demonstrates how to:
The following figure illustrates the layout.
Note that the list box callback is not used in this program because the plotting actions are initiated by push buttons. In this situation you must do one of the following:
Callback
property.View the Layout and Application M-File
Use these links to display the FIG-file in the Layout Editor and the application M-file in the MATLAB Editor. This enables you to see the values of all component properties and to explore how the components are assembled to create the GUI. You can also see the complete code listing.
Click here to display the layout in GUIDE.
Click here to display the application M-file in the editor.
![]() | The List Box Callback | Reading Workspace Variables | ![]() |