Output Values from Structure to Cell

I am using a toolbox's function that outputs data into a matrix within a structure. I want my program to automatically extract the values from this "hidden" matrix and add them iteratively to a cell array (i.e., line the column vectors up next to each other). Is this possible? Furthermore, each iteration of my loop would create a "hidden" matrix of the same name--let's call it X. How could I change X's name for each iteration so as to extract unique vectors?

답변 (1개)

Walter Roberson
Walter Roberson 2015년 6월 29일

0 개 추천

sounds like struct2cell() might be what you are looking for.

댓글 수: 1

Max Aragon
Max Aragon 2015년 6월 29일
Cool, thank you. Now it's just a matter of making a loop and concatenating the array the struct2cell made.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Data Types에 대해 자세히 알아보기

질문:

2015년 6월 29일

댓글:

2015년 6월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by