2.3. Data Types
There are 14 fundamental data types (or classes) in MATLAB (Fig. 2.1). Each of these types is in the form of an array. This array is a minimum single element in size and can grow to an n-dimensional array of any size. Two-dimensional (2-D) versions of these arrays are called matrices.
Figure 2.1. The Data Types in MATLAB
The char data type, for example hello, is a character array. Each character is stored in Unicode (uniform code) representation and is 16 bits long. The character string is 1-by-n array of characters. Array of strings can be used to store number of strings, provided all of them have the ...
Get MATLAB® and Its Applications in Engineering: [Based on MATLAB 7.5 (R2007b)] now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.