Writematrix error exceeds sheet boundaries error
29 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Andrew Trafford
le 29 Oct 2020
Commenté : Andrew Trafford
le 1 Nov 2020
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 commentaires
Réponse acceptée
Mathieu NOE
le 30 Oct 2020
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Spreadsheets dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!