This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Data Type Identification

Determining data type of a variable


iscalendardurationDetermine if input is calendar duration array
iscategoricalDetermine whether input is categorical array
iscellDetermine whether 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 if input is integer array
isjavaDetermine if input is Java object
islogicalDetermine if input is logical array
isnumericDetermine if input is numeric array
isobjectDetermine if input is MATLAB object
isrealDetermine whether array is real
isstringDetermine if input is string array
isstructDetermine whether input is structure array
istableDetermine whether input is table
istimetableDetermine if input is timetable
is*Detect state
isaDetermine if input has specified data type
classDetermine class 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.