How can I write the cell array to an excel

4 Ansichten (letzte 30 Tage)
Jonathan Babitsch
Jonathan Babitsch am 16 Jul. 2020
Beantwortet: Walter Roberson am 18 Jul. 2020
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 Kommentare
Jonathan Babitsch
Jonathan Babitsch am 17 Jul. 2020
Wow that was easy, sorry for annoying you...
Thanks heaps Walter!!
Jonathan Babitsch
Jonathan Babitsch am 18 Jul. 2020
Is there a possibility to mark your comment as accepted answer because it was you who led me the right way?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 18 Jul. 2020
cell2mat() the cell array, and if necessary, transpose it with .'

Weitere Antworten (1)

KSSV
KSSV am 16 Jul. 2020
  1 Kommentar
Jonathan Babitsch
Jonathan Babitsch am 16 Jul. 2020
That doesn't help, whatever I use it doesn't do what I want...
My goal is to write the first Vector in the Array to A1:C1, the second in A2:C2 and so on until A101:C:101...
My idea:
writecell(P,'C.xls','Sheet',1,'Range','A1:C101')
But that doesn`t work, any suggestions whats missing?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by