table is a data type suitable for column-oriented
or tabular data that is often stored as columns in a text file or
in a spreadsheet. Tables consist of rows and column-oriented variables.
Each variable in a table can have a different data type and a different
size with the one restriction that each variable must have the same
number of rows. For more information, see Create and Work with Tables or
and Categorical Arrays.
|Table array with named variables that can contain different types|
|Convert homogeneous array to table|
|Convert cell array to table|
|Convert structure array to table|
|Convert table to homogeneous array|
|Convert table to cell array|
|Convert table to structure array|
|Convert table to timetable|
|Convert timetable to table|
|Sort rows of matrix or table|
|Unique values in array|
|Determine if matrix or table rows are sorted|
|Top rows in sorted order|
|Add variables to table or timetable|
|Move variables in table or timetable|
|Delete variables from table or timetable|
|Split multicolumn variables in table or timetable|
|Combine table or timetable variables into multicolumn variable|
|Subscript into table or timetable by variable type|
|Combine two tables or timetables by rows using key variables|
|Inner join between two tables or timetables|
|Outer join between two tables or timetables|
Use tables to store mixed-type data conveniently, access data with numeric or named indexing, and to store metadata.
This example shows how to create a table from workspace variables, work with table data, and write tables to files for later use.
Indexing into tables with parentheses, curly braces, and dot notation has different results. You can use indexing to create a table that is a subset of a larger table or to create an array from data in a table.
This example shows how to perform calculation on tables.
Tables can raise compatibility warnings, and change dimension names, when you modify the DimensionNames property.