writatable row size limitation

조회 수: 5 (최근 30일)
kubra
kubra 2024년 9월 5일
편집: dpb 2024년 9월 5일
Hello,
I have a matrix, it is 86405x16 table, I am trying to save that table in a excel spread sheet by using writetable command but it exceeds the sheet boundariest by 20870 rows. Can anybody help me how to save that table in a xls file?
  댓글 수: 2
ScottB
ScottB 2024년 9월 5일
Is that a limitation of writetable? The limits for excel are 1,048,576 rows by 16,384 columns.
Walter Roberson
Walter Roberson 2024년 9월 5일
xlsx limit is 1048576 rows, but xls limit is 65535 rows.

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

채택된 답변

dpb
dpb 2024년 9월 5일
편집: dpb 2024년 9월 5일
Write to '.xlsx' file instead of '.xls'
>> tX=array2table(rand(86405,16));
>> size(tX)
ans =
86405 16
>> writetable(tX,'BigTable.xlsx')
>> winopen('BigTable.xlsx')
works as expected, but
>> writetable(tX,'BigTable.xls')
The data block starting at cell 'A1' exceeds the sheet boundaries by 20870 row(s) and 0 column(s).
>>
The .xls format is limited to 65535 rows.
  댓글 수: 1
kubra
kubra 2024년 9월 5일
thank you very much, changing the file extension from .xls to .xlsx helped!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by