Programming |
Structures are MATLAB arrays with named "data containers" called fields. The fields of a structure can contain any kind of data. For example, one field might contain a text string representing a name, another might contain a scalar representing a billing amount, a third might hold a matrix of medical test results, and so on.
Like standard arrays, structures are inherently array oriented. A single structure is a 1-by-1 structure array, just as the value 5 is a 1-by-1 numeric array. You can build structure arrays with any valid size or shape, including multidimensional structure arrays.
Note The examples in this section focus on two-dimensional structure arrays. For examples of higher-dimension structure arrays, see Multidimensional Arrays. |
The following list summarizes the contents of this section:
Function Summary | Building Structure Arrays |
© 1994-2005 The MathWorks, Inc.