Documentation

Data Type Identification

Determining data type of a variable

Functions

iscalendarduration Determine if input is calendar duration array
iscategorical Determine whether input is categorical array
iscell Determine if input is cell array
iscellstr Determine if input is cell array of character vectors
ischar Determine if input is character array
isdatetime Determine if input is datetime array
isduration Determine if input is duration array
isenum Determine if variable is enumeration
isfloat Determine if input is floating-point array
isgraphics True for valid graphics object handles
isinteger Determine whether input is integer array
isjava Determine if input is Java object
islogical Determine if input is logical array
isnumeric Determine whether input is numeric array
isobject Determine if input is MATLAB object
isreal Determine whether array is real
isstring Determine if input is string array
isstruct Determine if input is structure array
istable Determine whether input is table
istimetable Determine if input is timetable
is* Detect state
isa Determine if input has specified data type
class Class of object
validateattributes Check validity of array
whos List variables in workspace, with sizes and types

Topics

Fundamental MATLAB Classes

There are many different data types, orclasses, that you can work with in the MATLAB®software. You can build matrices and arrays of floating-point and integer data, characters and strings, and logicaltrueandfalsestates. Function handles connect your code with any MATLAB function regardless of the current scope. Tables, structures, and cell arrays provide a way to store dissimilar types of data in the same container.