MathWorks Machine Translation
The automated translation of this page is provided by a general purpose third party translator tool.
MathWorks does not warrant, and disclaims all liability for, the accuracy, suitability, or fitness for purpose of the translation.
You can check the data type of a variable x using
any of these commands.
Display the data type of x.
xType = class(x);
Assign the data type of x to a variable.
Determine if x is a numeric type.
Determine if x is the specified numeric
type. (Examples for any integer, unsigned 64-bit integer, any floating
point, double precision, and single precision are shown here).
Determine if x is real or complex.
Determine if x is Not a Number (NaN).
Determine if x is infinite.
Determine if x is finite.
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries