Borrar filtros
Borrar filtros

How to convert a struct into a matrix form?

1 visualización (últimos 30 días)
Nafeesath Musfira
Nafeesath Musfira el 21 de Mzo. de 2015
Editada: Stephen23 el 22 de Mayo de 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 comentario
Stephen23
Stephen23 el 21 de Mzo. de 2015
Editada: Stephen23 el 22 de Mayo de 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:

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Structures en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by