5.0

5.0 | 2 ratings Rate this file 83 downloads (last 30 days) File Size: 2.28 KB File ID: #25387

Write Cell Array to Text File

by Roland Pfister

 

22 Sep 2009

Code covered by BSD License  

A cell array is written to a delimited output file, incl. options for appending & custom delimiters.

Download Now | Watch this File

File Information
Description

This submission works similar as Sylvain Fiedlers / Rob Kohrs "cell2csv.m". Thus, any cell array containing numbers and/or strings can be written to an output file.

dlmcell.m, however, has two main advantages:

(1) It is possible to append the cell array to an existing file.

(2) Even numbers or words that are stored as <1,1> cell within the cell array can be read.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
cell2csv

MATLAB release MATLAB 7.8 (R2009a)
Zip File Content  
Other Files dlmcell.m,
license.txt
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
28 Oct 2009 Jeff Evans

works perfectly! just as described.

01 Nov 2009 Yonatan Cal

Thanks for this file!

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
array Roland Pfister 23 Sep 2009 11:28:10
export Roland Pfister 23 Sep 2009 11:28:11
dlmwrite Roland Pfister 23 Sep 2009 11:28:11
data Roland Pfister 23 Sep 2009 11:28:11
data export Roland Pfister 23 Sep 2009 11:28:11
cell Roland Pfister 23 Sep 2009 11:28:11
tools Roland Pfister 23 Sep 2009 11:28:11
utilities Roland Pfister 23 Sep 2009 11:28:11
append Roland Pfister 23 Sep 2009 11:28:11
delimited Roland Pfister 23 Sep 2009 11:28:11
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com