![]() |
Exploiting MATLAB's Data Structures |
s
= struct('field',values,'field',values,...) produces
a structure array with the specified fields initialized to the values in
the values cell arrays.
[db.height]
produces a 1 by length(db) vector when all the height fields contain scalars.
for loops are commonly required when dealing with
structure arrays. You may need to use a for loop to solve parts
of this problem.
![]()
Copyright © 1997 The MathWorks,
Inc.
clay@mathworks.com
$Revision$ $Date$