Addressing array of structures as a matrix of values?
- From: neuromath <mathneuro@xxxxxxxxx>
- Date: Wed, 31 Oct 2007 10:56:31 -0700
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.
.
- Follow-Ups:
- Re: Addressing array of structures as a matrix of values?
- From: Chris Hulbert
- Re: Addressing array of structures as a matrix of values?
- Prev by Date: Re: Sequentially cell arrays
- Next by Date: Re: Networking within Matlab
- Previous by thread: Re: FOURCC Video Codec
- Next by thread: Re: Addressing array of structures as a matrix of values?
- Index(es):
Relevant Pages
|