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|
|Set intersection of two arrays|
|Array elements that are members of set array|
|Set difference of two arrays|
|Set exclusive OR of two arrays|
|Unique values in array|
|Set union of two arrays|
|Combine two tables or timetables by rows using key variables|
|Inner join between two tables or timetables|
|Outer join between two tables or timetables|
|Sort rows of matrix or table|
|Determine if matrix or table rows are sorted|
|Top rows in sorted order|
|Stack data from multiple variables into single variable|
|Unstack data from single variable into multiple variables|
|Subscript into table or timetable by variable type|
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.