No BSD License  

Highlights from
xlswrite_mod

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 7.84 KB File ID: #18057

xlswrite_mod

by Edmond Ng

 

18 Dec 2007 (Updated 18 Dec 2007)

Writes data to excel, allows writing to more than 702 (ZZ) columns

| Watch this File

File Information
Description

Modified version of xlswrite_mod. I needed to write to more than 702 columns (ZZ) since with Excel 07 it can support up to 16000 columns (XFD). I added a third character so from ZZ it will become AAA, AAB...AAZ, ABA,ABB,ABC,...ABZ and so forth. Tested upto 2500 columns using a simple matrix and it works. I have not tried using column offset such as when you defined which column to start writing. Feel free to modify/comment and correct it if there is any mistake.

Some simple test:
% test array, create 25x2500, test for
% excel write
for i = 1:25
    for j = 1:2500
      testArray(i,j) = j;
    end
end
filename = 'testArray.xlsx';
xlswrite_mod(testArray(1:25,1:2054),{},{},filename);
% End of testArray

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
xlswrite_mod, xlswrite1

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
data import Edmond Ng 22 Oct 2008 09:39:52
data export Edmond Ng 22 Oct 2008 09:39:52
excel07 Edmond Ng 22 Oct 2008 09:39:52
03 Edmond Ng 22 Oct 2008 09:39:52
write to excel Edmond Ng 22 Oct 2008 09:39:52

Contact us at files@mathworks.com