How can I write the cell array to an excel
Mostrar comentarios más antiguos
Hey everybody,
How can I write my cell array to an excel file?
It is a cell array of the dimension 1*101.
I also attached the code, it is pretty simple. What I am trying to do is write the cell Array P to an excel file.
Thanks a lot in advance,
Johnny
7 comentarios
Walter Roberson
el 16 de Jul. de 2020
You are overwriting the same location in the same sheet of the same file each time.
Jonathan Babitsch
el 16 de Jul. de 2020
Walter Roberson
el 16 de Jul. de 2020
If they are numeric contents, then cell2mat() the cell to create a numeric array and writematrix() that.
Jonathan Babitsch
el 16 de Jul. de 2020
Walter Roberson
el 16 de Jul. de 2020
Transpose the array?
Jonathan Babitsch
el 17 de Jul. de 2020
Jonathan Babitsch
el 18 de Jul. de 2020
Respuesta aceptada
Más respuestas (1)
KSSV
el 16 de Jul. de 2020
0 votos
To write an cell array into xlfile, you can use xlsread, writetable.
1 comentario
Jonathan Babitsch
el 16 de Jul. de 2020
Categorías
Más información sobre Data Import from MATLAB 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!