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.
Funktionen
Themen
- 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
true
andfalse
values, 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. - 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.