Writing multiple structures to user specified excel file

1 次查看(过去 30 天)
I have a variable amount of structures with 4 fields, each containing 1x1 blocks of data. How would I go about writing multiple structures to a user specified excel file?

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2016-4-5
编辑:Azzi Abdelmalek 2016-4-5
load Example
v=[struct2cell(Data1.data)]
out=v(:,:)'
xlswrite('file.xlsx',out)
  18 个评论
Azzi Abdelmalek
Azzi Abdelmalek 2016-4-5
You did not look at my code!
out=[]
for i=1:length(data1)
v=[struct2cell(Data(i).data)];
out=[out;v(:,:)'];
end

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by