Rank: 361 based on 297 downloads (last 30 days) and 1 file submitted
photo

Sylvain Fiedler

E-mail
Company/University
Uni Kaiserslautern
Lat/Long
49.423748, 7.751733

Personal Profile:

 

Watch this Author's files

 

Files Posted by Sylvain Fiedler
Updated   File Tags Downloads
(last 30 days)
Comments Rating
03 Nov 2010 Cell Array to CSV-file [cell2csv.m] Writes a cell array into a comma separated values text file (*.csv) Author: Sylvain Fiedler data import, data export, csv, cell, cell to file, array to file 297 25
  • 4.72414
4.7 | 29 ratings
Comments and Ratings on Sylvain Fiedler's Files View all
Updated File Comment by Comments Rating
15 Oct 2014 Cell Array to CSV-file [cell2csv.m] Writes a cell array into a comma separated values text file (*.csv) Author: Sylvain Fiedler Ricardo

Just FYI:

I had a problem with this script when my cell array had a row with strings: all the values were written as 'NA', supposedly because they didn't verify the conditions from all the elseif's of StringX(x).

If I deleted the last else it would give me an error: "Error using sprintf
Function is not defined for 'cell' inputs."

So I changed the last else from

else
x = 'NA';
to:

else
x = char(x);

And it worked. No more 'NA'.

Thank you for your script. Good work ;)

02 Oct 2014 Cell Array to CSV-file [cell2csv.m] Writes a cell array into a comma separated values text file (*.csv) Author: Sylvain Fiedler Charlotte

02 Oct 2014 Cell Array to CSV-file [cell2csv.m] Writes a cell array into a comma separated values text file (*.csv) Author: Sylvain Fiedler Fabricio Pereira

26 Sep 2014 Cell Array to CSV-file [cell2csv.m] Writes a cell array into a comma separated values text file (*.csv) Author: Sylvain Fiedler Alex

24 Jun 2014 Cell Array to CSV-file [cell2csv.m] Writes a cell array into a comma separated values text file (*.csv) Author: Sylvain Fiedler Jerry

I modified according to Justin and Jan's suggestions. And also added support for row vector. It is much faster now. See the updated file at http://www.mathworks.com/matlabcentral/fileexchange/47055-cell2csv-m

credits go to Sylvain.

Contact us