Next: tableOuterFillValue, Previous: struct2table, Up: API Alphabetically [Contents]
Tabular data array containing multiple columnar variables.
A table
is a tabular data structure that collects multiple parallel
named variables.
Each variable is treated like a column. (Possibly a multi-columned column, if
that makes sense.)
The types of variables may be heterogeneous.
A table object is like an SQL table or resultset, or a relation, or a DataFrame in R or Pandas.
A table is an array in itself: its size is nrows-by-nvariables, and you can index along the rows and variables by indexing into the table along dimensions 1 and 2.
A note on accessing properties of a table
array: Because .-indexing is
used to access the variables inside the array, it can’t also be directly used
to access properties as well. Instead, do t.Properties.<property>
for
a table t
. That will give you a property instead of a variable.
(And due to this mechanism, it will cause problems if you have a table
with a variable named Properties
. Try to avoid that.)
cellstr
VariableNamesThe names of the variables in the table, as a cellstr row vector.
cell
VariableValuesA cell vector containing the values for each of the variables.
VariableValues(i)
corresponds to VariableNames(i)
.
cellstr
RowNamesAn optional list of row names that identify each row in the table. This is a cellstr column vector, if present.
Next: tableOuterFillValue, Previous: struct2table, Up: API Alphabetically [Contents]