MATLAB: Export a cell array with same size matrices to excel

dataexcelexport

I have a 1×23 cell with matrices inside:
30x30 double 30x30 double 30x30 double ...
How to export this cell array with matrices on excel? I want each 30×30 matrix a seperate sheet so I will have 23 sheets for the cell array.

Best Answer

Hello, something like this should do nicely:
% Taking "C" to be your cell array, and your excel file as: "myfile.xlsx"
for k=1:size(C,2)
xlswrite('myfile.xlsx',C{k},'Sheet',k);
end