Addressing array of structures as a matrix of values?



I have an array of structures that looks something like

data =
1xN struct array with fields:
field1
field2
.
.
.
fieldm

where field1, say, is a 1xK vector. I can clearly access each vector
with

data(n).field1

I'd like to put the 'field1' of each structure in a new row of a
matrix, and one way of doing that uses:

matrix = [data.field1];
matrix = reshape(matrix,[],K);

However, I am just wondering if there is a one-step function that
might be able to do this. Thanks.

.



Relevant Pages