xlswrite output size limit
5 次查看(过去 30 天)
显示 更早的评论
Good afternoon, MATLAB community. This is an obscure question, but does anyone know what the maximum file size that can be written to Excel using xlswrite?
I have a 14183x2416 cell array (has to be a cell array since there are a combination of characters and numbers), and when I 'whos' the variable name, I find it to be 4.1 GB. I've poured through all the literature I could find regarding writing to Excel from MATLAB, but everything I see talks about the actual cell/matrix size limitation, and from what I can tell, mine is well below that limit. The error I get is:
Error: Not enough storage is available to complete this operation.
I'm using a fairly high-end computer, so I can't imagine it's a hardware issue. To investigate the issue further, I chopped off about 1400 columns and the resulting cell was about 1.7 GB, which wrote to Excel with ease. At this point, the only thing I can think of is to break the big file up into two (or more) smaller files, but there's a way to keep everything in one Excel file, that would be the desired outcome.
The Excel version I'm using is 2010 (corrected; used to say 2016) and the MATLAB version is 2016b if that helps.
Thanks for your time!
10 个评论
Harsh
2018-7-18
Additionally, looks like the error is coming from Excel when it does not have enough memory. Assuming that you have a large enough memory to handle 4GB+ file sizes, check the task manager for memory usage and close any other programs / applications.
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!