To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
I have several variables which are 2x20 structures.
I want to capture and store all the values in the 2nd row and put this into excel.
How can I do this?
No products are associated with this question.
You may need to use struct2cell() to convert your structure to cell array and then use xlswrite(). Please give an example of your structure. There might be special things to deal with.
Okay. I hope this helps. I dont know how else to describe it. For example:
For my 2x20 structured variable called 'variable1'. When I open this in the variable editor, it shows 1x1 structures in every cell.
When double clicking on a cell in the first row this shows: field: cdata value: double
When double clicking on a cell in the second row this shows: field: cdata value: 50 (or some integer number)
Okay, sounds like not a difficult data structure. Take a look at the example I made up, if similar, you can go ahead. This way, the data written to the Excel file keeps the shape of your structure,i.e. 2 rows 20 columns in your case.