7 views (last 30 days)
Show older comments
MathWorks Support Team on 27 Jun 2009
⋮
The code of "xlswrite.m" contains the following text:
DEC2BASE27(D) returns the representation of D as a string in base 27,
expressed as 'A'..'Z', 'AA','AB'...'AZ', until 'IV'. Note, there is no zero
digit, so strictly we have hybrid base26, base27 number system. D must be
a negative integer bigger than 0 and smaller than 2^52, which is the
maximum number of columns in an Excel worksheet.
2^52 is not a typographical error because two more statements quote the
same value. I believe the the maximum number of columns in Excel is 256.
Accepted Answer
MathWorks Support Team on 27 Jun 2009
There is a limit in Microsoft Excel on the number of rows and columns an Excel file can contain. An Excel file may have upto 256 columns and 65536 rows. Since the data you are writing to the excel file has 1000 columns, Microsoft Excel errors out and MATLAB is unable to complete the XLSWRITE operation.The limitation in the new version of Excel is now 16k.
However, XLSWRITE does not limit itself to that, but will in fact work up to 2^52. This is to ensure that future increases in the maximum number of allowed rows are supported by XLSWRITE.
0 Comments Show -2 older commentsHide -2 older comments
Show -2 older commentsHide -2 older comments
More Answers (0)
See Also
See Also
MathWorks Support
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)
Contact your local office