通过变量类型的下标到表或时间表
S = vartype(
creates a subscript to select table variables of a specified type. Thetype
)type
输入argument is a character vector that specifies any type that is accepted by theisa
function, such as'数字'
,'float'
,'integer'
, or'string'
. It also can be'cellstr'
to select variables that contain cell arrays of character vectors.
例如,S = vartype('numeric'); T2 = T1(:,S)
returnsT2
as a table that contains only the numeric variables from the tableT1
.