vartype
Subscript into table or timetable by variable type
Syntax
Description
creates a
subscript to select table variables of a specified type. The S = vartype(type)type
input argument specifies a type that is accepted by the isa function, such as
"numeric", "float",
"integer", or "string". It also can be
"cellstr" to select variables that contain cell arrays of
character vectors.
For example, S = vartype("numeric"); T2 = T1(:,S) returns
T2 as a table that contains only the numeric variables from
the table T1.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2016b