MATLAB: Struct to excel data saving

excelimporting excel datasavestructstructures

Hi, I have a 15x3x5 struct with 12 fields. I want to save all the data inside the structure in excel with one sheet for each field. How can I do that?

Best Answer

S=[Cars(:)];
writetable(struct2table(S),'test.xlsx');
winopen test.xlsx