Assuming that each structure within the cell array has the same fields, you can extract the data from a specific field by indexing into the cell array and then into the field. Here's an example:
main.m415 chars13 lines
In the first example, we use curly braces to index into the first structure in the cell array, and then use dot notation to get the data from the field1 field.
In the second example, we use a loop to iterate through each structure in the cell array, and use the same indexing technique to get the data from the field2 field for each structure. The resulting data is stored in a vector.
gistlibby LogSnag