array2table
将同质阵列转换为表格
Syntax
T = array2table(A)
T = array2table(A,Name,Value)
Description
转换T
= array2table(A
)m
-by-n
array,A
, to anm
-by-n
table,T
. Each column ofA
becomes a variable inT
.
array2table
uses the input array name appended with the column number for the variable names in the table. If these names are not valid MATLAB®identifiers,array2table
uses character vectors of the form'Var1',...,'Var
, whereN
'N
是列中的数量A
.
creates a table from an array,T
= array2table(A
,Name,Value
)A
,有一个或多个指定的其他选项Name,Value
配对参数。
For example, you can specify row names or variable names to include in the table.
Examples
Input Arguments
Output Arguments
Tips
If
A
is a cell array, useCell2table(a)
to create a table from the contents of the cells inA
. Each variable in the table is numeric or a cell array of character vectors.array2table(A)
创建一个表,每个变量是单元列。
Extended Capabilities
在R2013B中引入
这个话题有帮助吗?