필터 지우기
필터 지우기

Is there a way to extract cell array with multiple layer to excel file?

조회 수: 1 (최근 30일)
Pratheek Manangi
Pratheek Manangi 2017년 6월 13일
댓글: Guillaume 2017년 6월 15일
  댓글 수: 1
Guillaume
Guillaume 2017년 6월 15일
Is there a way to have multiple values in a cell in excel?
No. So, what do you expect matlab to do when you give it multiple values to write in the same excel cell?

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

답변 (1개)

Dimitris Iliou
Dimitris Iliou 2017년 6월 15일
Assuming that you are using xlswrite to create the .xls file, you should not be able to achieve this workflow.
If you look in the related documentation page:
you will see the following statement:
If A is a cell array containing something other than a scalar numeric or text, then xlswrite silently leaves the corresponding cell in the spreadsheet empty.
So, in order to write your data to an excel file, I would recommend first converting the multi-dimensional cell data to a 2-D matrix or table data, and the try to export them to excel using xlswrite or writetable.
If you want to know more about working with MATLAB tables, you could refer to following documentation page:

카테고리

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