|
Contents | Previous | Next | Subchapters |
| Syntax |
addtable(caption, geometry, call back, ...data, column labels, row labels, style)caption, geometry, call back, ...data, column labels, row labels, style, field width)
|
| See Also | gettable , setcells , delwin , adddialog , addeditor , gaddwin |
If data is a character matrix, the integer scalar
field width must be used to specify the number of
characters to place in each cell of the table.
This number value must divide evenly (i.e., without a remainder)
into the number of columns in data.
If data is not a character matrix,
the current format
setting for the type of data
is used to display the values in the table.
All entries are right justified in the corresponding cell of the table.
The average character width and number of characters is used to determine
the width of the columns of the table.
If an entry or label does not fit in its cell, leading spaces
can be used to make the cell wider.
x
in the first column and the values of y in the second column.
The table can be deleted using the control on the caption bar.
clear
x = real(seq(10))
y = 1. / x
caption = "Example Table"
geometry = [100, 100, 200, 400]
callBack = "delwin(caption);"
data = [x, y]
columnLabels = {"x", "y"}
rowLabels = novalue
style = "normal"
format real "f10.5"
addtable(caption, geometry, callBack, ...
data, columnLabels, rowLabels, style)