table
是适用于以列为导向或表格数据的数据类型,通常将其作为文本文件或电子表格中的列存储。表由行和面向列的变量组成。表中的每个变量都可以具有不同的数据类型和不同的大小,并且一个限制性可以具有相同数量的行。有关更多信息,请参阅创建和使用桌子or watchTables and Categorical Arrays.
Join Tables | Combine two tables using key variables in the Live Editor |
堆栈表变量 | 将来自多个表变量的值结合到实时编辑器中的一个表变量 |
解开表变量 | Distribute values from one table variable to multiple table variables in the Live Editor |
使用表方便地存储混合型数据,使用数字或索引访问数据,然后存储元数据。
此示例显示了如何从工作区变量创建表格,使用表数据以及将表写入文件以备后用。
Indexing into tables with parentheses, dot notation, and curly braces accesses table data in different ways. 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.
此示例显示了如何在表上执行计算。
Changes to DimensionNames Property in R2016b
Tables can raise compatibility warnings, and change dimension names, when you modify the DimensionNames property.