MATLAB Creating Graphical User Interfaces

(Barry) #1

14 Examples of UIs Created Programmatically


Synchronized Data Presentations in a Programmatic UI


In this section...
“Techniques Illustrated in the Example” on page 14- 12
“About the Example” on page 14- 12
“View the Example Code” on page 14- 14
“Set Up and Interact with the uitable” on page 14- 14

Techniques Illustrated in the Example


The example shows how to interact with a uitable and the data it holds by:


  • Graphing specific columns of data

  • Brushing the graph when the user selects cells in the table


A 2-D axes displays line graphs of the data in response to selecting check boxes and in
real time, the results of selecting observations in the table.

About the Example


The UI presents data in a three-column table (a uitable object) and enables the user to
plot any column of data as a line graph. When the user selects data values in the table,
the plot displays markers for the selected observations.

This figure shows the results of plotting two columns and selecting a subset of values in
each column.
Free download pdf