![]() |
Exploiting MATLAB's Data Structures |
Usage: Structures are used to aggregate information of varying types, such as a database might contain.
db.name = 'Clay' db.height = 183 db.birthorder = 1 db, db.name, db.height
Problem #6 - Structures & Comma-Separated Lists
| struct | Create/convert to a structure |
| fieldnames | Fieldnames in a structure |
| isfield | True if field exists |
| cell2struct | Convert cell array into a structure |
| struct2cell | Convert structure into cell array |
![]()
![]()
Copyright © 1997 The MathWorks, Inc.
clay@mathworks.com
$Revision$ $Date$