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.

 Réponse acceptée

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

1 commentaire

Adolf Krige
Adolf Krige le 7 Fév 2022
Modifié(e) : Adolf Krige le 7 Fév 2022
Not as quick as I would hope for, but does the job (running the code of course, the answer was very quick :) ). Thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by