Data Type Identification

Determining data type of a variable


iscalendardurationDetermine if input is calendar duration array
iscategoricalDetermine whether input is categorical array
iscellDetermine if input is cell array
iscellstrDetermine if input is cell array of character vectors
ischarDetermine if input is character array
isdatetimeDetermine if input is datetime array
isdurationDetermine if input is duration array
isenumDetermine if variable is enumeration
isfloatDetermine if input is floating-point array
isgraphicsTrue for valid graphics object handles
isintegerDetermine whether input is integer array
isjavaDetermine if input is Java object
islogicalDetermine if input is logical array
isnumericDetermine whether input is numeric array
isobjectDetermine if input is MATLAB object
isrealDetermine whether array is real
isstringDetermine if input is string array
isstructDetermine if input is structure array
istableDetermine whether input is table
istimetableDetermine if input is timetable
is*Detect state
isaDetermine if input has specified data type
classClass of object
validateattributesCheck validity of array
whosList variables in workspace, with sizes and types


Fundamental MATLAB Classes

There are many different data types, or classes, 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 logical true and false states. 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.