フィルターのクリア

How to convert a struct into a matrix form?

1 回表示 (過去 30 日間)
Nafeesath Musfira
Nafeesath Musfira 2015 年 3 月 21 日
編集済み: Stephen23 2015 年 5 月 22 日
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 件のコメント
Stephen23
Stephen23 2015 年 3 月 21 日
編集済み: Stephen23 2015 年 5 月 22 日
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:

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeStructures についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by