Rank: 453 based on 220 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:
Professional Interests:
Mecanical Engineering

 

Watch this Author's files

 

Files Posted by Sylvain
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 220 24
  • 4.69231
4.7 | 26 ratings
Comments and Ratings on Sylvain's Files View all
Updated File Comment by Comments Rating
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.

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

A very convenient code. However, it is a little bit slow for saving large tables.
Jan Simon's suggestion is very helpful. Another way to further improve its speed is to bundle the output to fprintf() as much as possible. For example, write a whole line at one call rather than call fprintf() for each cell.
These two tweaks can reduce the excution time by >60%.

17 Jun 2013 Cell Array to CSV-file [cell2csv.m] Writes a cell array into a comma separated values text file (*.csv) Author: Sylvain Fiedler FarrokhNejad, Rostam

24 Apr 2013 Cell Array to CSV-file [cell2csv.m] Writes a cell array into a comma separated values text file (*.csv) Author: Sylvain Fiedler Simon, Jan

This function has a large potential for improvements:
"var = eval(['cellArray{z,s}']);" could be replaced by the much faster and nicer "v = cellArray{z,s};".
"if size(var, 1) == 0" does not catch [1x0] arrays, while "isempty(v)" would.

Checking the success of FOPEN is strongly recommended to avoid a strange behaviour.

The documentation is sufficient and the function works as advertised.

05 Mar 2013 Cell Array to CSV-file [cell2csv.m] Writes a cell array into a comma separated values text file (*.csv) Author: Sylvain Fiedler Igor

Nice function, but a tiny check for a proper result from fopen() might be nice (just for user to get better error messages).

Contact us