Data Type Identification
MATLAB® has many functions to identify the data type of a variable or to determine whether a variable has a specific data type. Use these functions when calling or writing code that depends on variables having specific data types.
Functions
Topics
- Fundamental MATLAB Classes
You can work with many different data types, or classes, in MATLAB, including single- and double-precision numbers, signed and unsigned integers, strings, logical values, tables, function handles, and more. Deciding which class to use depends on your intended usage and memory storage requirements.
- Use is* Functions to Detect State
There are many functions in MATLAB that detect if an input has a specified data type or a specified state, or if the elements of an input array meet a specified condition.
- Working with Objects in MATLAB
Some MATLAB functions return objects. Objects combine data with functions and methods.