MATLAB: Writing multiple structures to user specified excel file

dataexcelexcel writestructureswriting data

I have a variable amount of structures with 4 fields, each containing 1×1 blocks of data. How would I go about writing multiple structures to a user specified excel file?

Best Answer

load Example
v=[struct2cell(Data1.data)]
out=v(:,:)'
xlswrite('file.xlsx',out)