writecell to excel when cell elements are matrixes
Mostrar comentarios más antiguos
I have a 1x4 cell and each element is an nxm matrix, each matrix may or may not be different dimentions. I want to save this data to a file and I think the best is to store each matrix into a sheet of an excel file. Is there an elegant way to do this? I can only thing to do it with loops.
3 comentarios
dpb
el 2 de Mayo de 2020
Why Excel?
Why not just save the array as ..mat file and retrieve it in MATLAB?
george hargenrader
el 2 de Mayo de 2020
george hargenrader
el 2 de Mayo de 2020
Respuestas (1)
"I just wish I could use append rather than think about what row to start on using the 'Range' command."
The Matlab Genie has made your wish come true.
Update to r2020a and you can append an excel file using writematrix as reported in the r2020a release notes.
Example:
writematrix(M,'M.xls','WriteMode','append')
Categorías
Más información sobre Spreadsheets en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!