User`s guide

GUI that Displays and Graphs Tabular Data
Parsecommand-lineargumentsspecifyingaworkspacevariabletoload
into the table when the GUI opens
Iftheuserspecifiesthenameofaworkspacevariablewhencalling
tableplot, its opening function can validate the argument. (Does it exist?
Is it numeric? Is it one- or two-dimensional?) If the argument passes these
tests, assign the uitable
Data property to it and proceed to the next step.
Parse a second command-line argument intended for specifying uitable
column names.
The optional column names should be supplied as a cell matrix of strings
the same width as the data matrix. If this argument is not supplied, the
operation should assign default column names, such as
Col_1, C ol_2 , ...
Col_n.
Add check boxes for plotting columns if the number of columns in the
uitable expands, and remove them when columns go away.
You can add new che ck boxes w hen adding columns to the table and remove
them if the table contracts. If you allow the uitable and the GUI to grow
wider, you can continue to space the check boxes the same as they are
currently, up to the point where the GUI becomes too wide to fit within the
screen. If you keep the width of the uitable constant, you need some other
mechanism to select columns to plot, such as checking items on a menu
or selecting names from a list box.
Incorporate a uicontrol and a dialog to select a workspace variable to load
in after the GUI is running.
For example, you can add a list box that interrogates the current folder
using
whos and select from t he v ariables only tho se that are numer ic and
with dimensionality no greater than 2 to populate the table. When the
user selects one of these items in the list box, that variable is loaded and
replaces the uitable data. The operation should assign default column
names for the new data.
Provide a dialog to let the use change column names on the fly.
Ifyoudothis,thecallbackwillneedtochangethecolumnheadersinthe
uitable, and (if you implement line plotting with menus, as described
above) change menu items as well.
Provide an option to normalize values before plotting them or display a
semilog plot instead of a linear plot
15-31