How can I write the cell array to an excel

조회 수: 1 (최근 30일)
Jonathan Babitsch
Jonathan Babitsch 2020년 7월 16일
답변: Walter Roberson 2020년 7월 18일
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
Jonathan Babitsch
Jonathan Babitsch 2020년 7월 17일
Wow that was easy, sorry for annoying you...
Thanks heaps Walter!!
Jonathan Babitsch
Jonathan Babitsch 2020년 7월 18일
Is there a possibility to mark your comment as accepted answer because it was you who led me the right way?

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2020년 7월 18일
cell2mat() the cell array, and if necessary, transpose it with .'

추가 답변 (1개)

KSSV
KSSV 2020년 7월 16일
  댓글 수: 1
Jonathan Babitsch
Jonathan Babitsch 2020년 7월 16일
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?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by