Rank: 1342 based on 60 downloads (last 30 days) and 1 file submitted
photo

Rob Kohr

E-mail
Company/University
Rutgers University

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Rob
Updated   File Tags Downloads
(last 30 days)
Comments Rating
09 May 2005 cell2csv Writes cell array content into a *.csv file. Author: Rob Kohr csv, data, cell, export, array, data export 60 10
  • 4.75
4.8 | 8 ratings
Comments and Ratings on Rob's Files View all
Updated File Comment by Comments Rating
13 Apr 2011 cell2csv Writes cell array content into a *.csv file. Author: Rob Kohr Ates, Murat

xlswrite works much faster as Tim pointed. Only thing is I could not make it produce comma delimited cvs. I passed the 65536 row limit with Excel 2010. I found in some places they use xlFormat = 6 instead of 24 but both of them produces tab delimited csv.

“.csv”: FileFormatNum = 6
“.txt”: FileFormatNum = -4158
“.prn”: FileFormatNum = 36

29 Aug 2010 cell2csv Writes cell array content into a *.csv file. Author: Rob Kohr Brezani, Ivan

works fine, thanks!

20 Apr 2010 cell2csv Writes cell array content into a *.csv file. Author: Rob Kohr Sharp, Tim

For up to 65536 rows and 256 columns (or I assume more in Excel 2007 though I haven't tested), you can write to a csv file super-quick using a modified version of xlswrite. Simply add the enumeration xlFormat = 24 for when ext is csv in the switch-case around line 230 and you simply need to give xlswrite a filename that ends in csv.

08 Sep 2008 cell2csv Writes cell array content into a *.csv file. Author: Rob Kohr Everson, Daniel

This function is great. However, it seems that using "eval" on line 28 is unnecessary. By changing:
var = eval(['cellArray{z,s}']);
to:
var = cellArray{z,s};
you get a significant increase in preformance. 16.5 seconds -> .45 seconds in the example I tested for a large cell.

10 Jul 2008 cell2csv Writes cell array content into a *.csv file. Author: Rob Kohr Cheng, Xi

Wonderful, just what I need

Top Tags Applied by Rob
array, cell, csv, data, data export
Files Tagged by Rob
Updated   File Tags Downloads
(last 30 days)
Comments Rating
09 May 2005 cell2csv Writes cell array content into a *.csv file. Author: Rob Kohr csv, data, cell, export, array, data export 60 10
  • 4.75
4.8 | 8 ratings

Contact us at files@mathworks.com