User`s guide
R2013b
4-2
Language and Programming
table data container for managing, sorting, and filtering mixed-type
tabular data
Tables and Categorical Arrays (6 min, 9 sec)
table is a new data type to collect mixed-type data and metadata properties, such as
variable names, row names, descriptions, and variable units, in a single container. Tables
are suitable for column-oriented or tabular data that is often stored as columns in a text
file or in a spreadsheet. For example, you can use a table to store experimental data, with
rows representing different observations and columns representing different measured
variables.
Tables consist of rows and column-oriented variables. Each variable (column) in a table
can have a different data type and a different size with the restriction that each variable
must have the same number of rows. For example,
T =
Gender Age Smoker BloodPressure
------ --- ------ ---------------
Smith 'M' 38 true 124 93
Johnson 'M' 43 false 109 77
Williams 'F' 38 false 125 83
Jones 'F' 40 false 117 75
Brown 'F' 49 false 122 80
For more information, see Tables.
categorical array for ordered and unordered categorical data
Tables and Categorical Arrays (6 min, 9 sec)
categorical is a data type to store data with values from a finite set of discrete
categories. A categorical array provides efficient storage and convenient manipulation
of nonnumeric data, while also maintaining meaningful names for the values. Ordinal
categorical arrays are a type of categorical array whose categories have a mathematical
order. For example,
myCategorical =