Save cells containing inconsistent arrays to excel

Hello
I have a cell array (1x52) containing vectors of varying length, that I would like to save to an excell file
"1x840 double 1x840 double 1x840 double 1x1014 double 1x872 double 1x1014 double 1x840 double 1x840 double......"
I cannot use cell2mat since "Dimensions of arrays being concatenated are not consistent"
and just using " xlswrite(filename,M,sheet,xlRange)"
I added the data
anny suggestions would be welcome.

 Accepted Answer

for k=1:length(M)
writematrix(M{k}','myXLSfile.xlsx','WriteMode','append');
end

1 Comment

Not as quick as I would hope for, but does the job (running the code of course, the answer was very quick :) ). Thanks

Sign in to comment.

More Answers (0)

Products

Release

R2020a

Community Treasure Hunt

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

Start Hunting!