Programming Previous page   Next Page

Multidimensional Structure Arrays

Multidimensional structure arrays are extensions of rectangular structure arrays. Like other types of multidimensional arrays, you can build them using direct assignment or the cat function:

Applying Functions to Multidimensional Structure Arrays

To apply functions to multidimensional structure arrays, operate on fields and field elements using indexing. For example, find the sum of the columns of the test array in patient(1,1,2):

Similarly, add all the billing fields in the patient array:


Previous page  Multidimensional Cell Arrays Summary of Matrix and Array Functions Next page

© 1994-2005 The MathWorks, Inc.