Writematrix error exceeds sheet boundaries error

조회 수: 25 (최근 30일)
Andrew Trafford
Andrew Trafford 2020년 10월 29일
댓글: Andrew Trafford 2020년 11월 1일
Hello,
Iis there any way to use writematrix (r2020a; excel 16 Mac or 2010 WIN) to write more than 2^16 rows of data (2 cols). Excel help says it can take 2^20 rows but writematrix throws error message if matrix > 2^16 rows.
Thanks,
Andy
  댓글 수: 6
Walter Roberson
Walter Roberson 2020년 10월 30일
Good point, Mathieu.
Andrew Trafford
Andrew Trafford 2020년 11월 1일
Fantastic, thank you. Hadn't mentally made the link between office versions and 'xls' to 'xlsx'...rookie!

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

채택된 답변

Mathieu NOE
Mathieu NOE 2020년 10월 30일
hi again
the proof is here
you're trying to save in older xls format which is limited to 2^16 = 65536 rows
try with xlsx format (the limit should be 2^20 rows)
>> A = rand(2^17,2);
>> writematrix(A, 'test.xls','Sheet', 1, 'Range','A1');
Error using writematrix (line 175)
The data block starting at cell 'A1' exceeds the sheet boundaries by 65536 row(s) and 0 column(s).
>> writematrix(A, 'test.xlsx','Sheet', 1, 'Range','A1');
>>

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by