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.
Numeric Data Types
Characters and Strings
Dates and Times
Cells, Structures, and Tables
- Fundamental MATLAB Classes
There are many different data types, or classes, that you can work with in MATLAB. You can build matrices and arrays of floating-point and integer data, characters and strings, logical
falsevalues, and so on. Function handles connect your code with any MATLAB function regardless of the current scope. Tables, timetables, structures, and cell arrays provide a way to store dissimilar types of data in the same container.
- Working with Objects in MATLAB
Some MATLAB functions return objects. Objects combine data with functions and methods.