필터 지우기
필터 지우기

How to copy a cell array to Excel?

조회 수: 3 (최근 30일)
SUSHMA MB
SUSHMA MB 2017년 2월 27일
편집: SUSHMA MB 2017년 2월 28일
I have a cell array 'X' with value '82794x1 cell' Inside which their are some matrix like
[1x12] double
[1x18] double
[1x6] double
[1x14] double
[1x6] double
[1x10] double
[1x6] double
[1x8] double.....and so
How can i copy the values of cell 'X' into an excel sheet?

답변 (1개)

Walter Roberson
Walter Roberson 2017년 2월 27일
Excel is not designed to have nested arrays inside entries. You would have to create 82794 "sheets" with one cell's worth each:
for K = 1 : length(X)
xlswrite(FileName, X{K}, 'Sheet', K);
end
  댓글 수: 2
SUSHMA MB
SUSHMA MB 2017년 2월 28일
Here does the filename indicates the name of the .mat file
SUSHMA MB
SUSHMA MB 2017년 2월 28일
편집: SUSHMA MB 2017년 2월 28일
I am getting the following error
Error using xlswrite (line 165)
Range argument must be a string in Excel A1 notation.

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

카테고리

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