MATLAB Creating Graphical User Interfaces

(ff) #1

Plot Workspace Variables in a GUIDE App


In this section...
“Open and Run the App” on page 8-20
“Examine the Code” on page 8-21

This example shows how to examine and run a prebuilt GUIDE app. The app contains a
list box that displays the variables in your MATLAB workspace. The button below the list
box refreshes the list. The three buttons on the right plot the selected variables using
different scales for the x and y axes.

Open and Run the App


Open and run the app. Select one variable in the list box, and then hold the Ctrl key to
select a second variable. Then click Plot, Semilogx, or Semilogy to plot the variables.

8 Examples of GUIDE UIs

Free download pdf