How to convert a struct into a matrix form?

2 views (last 30 days)
Nafeesath Musfira
Nafeesath Musfira on 21 Mar 2015
Edited: Stephen23 on 22 May 2015
I have a structure which consists of structures with different values. Now I've to convert it into a matrix form for further processing. Any help please.
I used code from file exchange for 'Affine optic flow' http://www.mathworks.com/matlabcentral/fileexchange/27093-affine-optic-flow
This gave a flow vector which is struct format.I found the flow vector for all my frames and stored it in another variable, which gave me a structure of structures. now, i don't Know how to convert it into a matrix.
  1 Comment
Stephen23
Stephen23 on 21 Mar 2015
Edited: Stephen23 on 22 May 2015
Not enough information! Are your arrays scalar or non-scalar, are the data contained in them scalar or non-scalar? Are the data inside able to be concatenated (i.e. do dimensions match for atleast one dimension?) Are the data types the same? How many fields do each of the structures have?
Sorry, but if you actually want help then you need to tell us some details. There are simply too many variations of "structure which consists of structures" to know what you might actually be doing.
Please read this:
In lieu of actual information about how the structures are... structured, here is some general information about accessing the data within structures:

Sign in to comment.

Answers (0)

Categories

Find more on Structures in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!