필터 지우기
필터 지우기

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 CenterFile Exchange에서 Structures에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by