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.
There are 16 fundamental classes in MATLAB. Each of these classes is in the form of a matrix or array. With the exception of function handles, this matrix or array is a minimum of 0-by-0 in size and can grow to an n-dimensional array of any size.
The following table describes the fundamental classes in more detail.
Class Name | Documentation | Intended Use |
---|---|---|
double, single | Floating-Point Numbers |
|
int8, uint8, int16, uint16, int32, uint32, int64, uint64 |
Integers |
|
char | Characters and Strings |
|
logical | Logical Operations |
|
function_handle | Function Handles |
|
table | Tables |
|
struct | Structures |
|
cell | Cell Arrays |
|