Rank: 231 based on 254 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 array to file, csv, array to text, save csv, cell to file, export ascii 254 19
  • 4.73684
4.7 | 19 ratings
Comments and Ratings on Sylvain's Files View all
Updated File Comment by Comments Rating
07 Sep 2011 Cell Array to CSV-file [cell2csv.m] Writes a cell array into a comma separated values text file (*.csv) Author: Sylvain Fiedler Wouter

csv2cell can be done by using a combination of uigetfile and textscan.

09 Aug 2011 Cell Array to CSV-file [cell2csv.m] Writes a cell array into a comma separated values text file (*.csv) Author: Sylvain Fiedler Robert

Nice m-script. Here a diff to account for cellstr contents and empty cells:
diff cell2csv.m cell2csv_orig.m
70,73c70,72
< if isempty(var)
< continue
< end
<
---
> % OUTPUT value
> fprintf(datei, '%s', var);
>
75c74
< if s ~= 1 %size(cellArray, 2)
---
> if s ~= size(cellArray, 2)
78,86d76
<
< % OUTPUT value
< if ischar(var)
< fprintf(datei, '%s', var);
< elseif iscellstr(var)
< fprintf(datei, '%s', var{1});
< end
<
<

13 Jan 2011 Cell Array to CSV-file [cell2csv.m] Writes a cell array into a comma separated values text file (*.csv) Author: Sylvain Fiedler Irene

Thanks; just used it to convert a 1048576x10 cell array to csv, took about 5 hours but didn't crash.

17 Mar 2010 Cell Array to CSV-file [cell2csv.m] Writes a cell array into a comma separated values text file (*.csv) Author: Sylvain Fiedler Brezani, Ivan
02 Sep 2009 Cell Array to CSV-file [cell2csv.m] Writes a cell array into a comma separated values text file (*.csv) Author: Sylvain Fiedler Anastasia

Thanks for the great script, just a note, I modified the line 56 to allow for output with CR/LF termination as required by some windows and visual basic programs.

 fprintf(datei,'\r\n');

It may be worth adding as an option.

Top Tags Applied by Sylvain
array to file, array to text, ascii, cell, cell to ascii
Files Tagged 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 array to file, csv, array to text, save csv, cell to file, export ascii 254 19
  • 4.73684
4.7 | 19 ratings

Contact us at files@mathworks.com