Categories &

Functions List

Class Definition: vartype

datatypes: vartype

Subscript into a table by variable type.

A utility class that facilitates subscripting table variables according to their data type.

See also: table

Source Code: vartype

Methods

vartype: S = vartype (type)

S = vartype (type) creates a subscript to select table variables of a specified type. The input argument, type, must be a character vector or a string scalar that specifies any type that is accepted by the isa function, such as numeric, logical, integer, string, categorical, etc. It can also be cellstr to select variables that contain cell arrays of character vectors or numeric to select variables with numeric values.

vartype: TF = varMatch (obj, value)

TF = varMatch (obj, value) compares the class type of the variable in value with the predifined class type in the vartype object. If they are equal, TF is true, otherwise TF is false.