How to convert a struct into a matrix form?

1 visualizzazione (ultimi 30 giorni)
Nafeesath Musfira
Nafeesath Musfira il 21 Mar 2015
Modificato: Stephen23 il 22 Mag 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 Commento
Stephen23
Stephen23 il 21 Mar 2015
Modificato: Stephen23 il 22 Mag 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:

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Structures in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by