How can I write the cell array to an excel
Show older comments
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 Comments
Walter Roberson
on 16 Jul 2020
You are overwriting the same location in the same sheet of the same file each time.
Jonathan Babitsch
on 16 Jul 2020
Walter Roberson
on 16 Jul 2020
If they are numeric contents, then cell2mat() the cell to create a numeric array and writematrix() that.
Jonathan Babitsch
on 16 Jul 2020
Walter Roberson
on 16 Jul 2020
Transpose the array?
Jonathan Babitsch
on 17 Jul 2020
Jonathan Babitsch
on 18 Jul 2020
Accepted Answer
More Answers (1)
KSSV
on 16 Jul 2020
0 votes
To write an cell array into xlfile, you can use xlsread, writetable.
1 Comment
Jonathan Babitsch
on 16 Jul 2020
Categories
Find more on Data Import from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!