Be the first to rate this file! 19 Downloads (last 30 days) File Size: 988 Bytes File ID: #20135

csv2cell

by Sergey

 

30 May 2008 (Updated 16 Jun 2008)

This functions reads a a text file into a cell array

| Watch this File

File Information
Description

% res = csv2cell( filename )
% res = csv2cell( filename, delimiter )
returns a cell array which contains both numeric and text data.

Acknowledgements

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

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
14 Jun 2008 Sergey B

There was a bug in the csv2cell.m. The function returned an error if no delimiters found in the csv file, i.e. the file includes only one column of data.
The bug is fixed.
My apologies.

22 Feb 2012 eric larrieux

the function interprets NaNs as character strings rather than doubles... is there any simple work around to fix this?

Please login to add a comment or rating.
Updates
06 Jun 2008

adding keywords

16 Jun 2008

There was a bug in the csv2cell.m. The function returned an error if no delimiters found in the csv file, i.e. the file includes only one column.
The bug was fixed.
My apologies.

Tag Activity for this File
Tag Applied By Date/Time
data import Sergey 22 Oct 2008 10:04:16
data export Sergey 22 Oct 2008 10:04:16
csv Sergey 22 Oct 2008 10:04:16
cell Sergey 22 Oct 2008 10:04:16
cell2csv Sergey 22 Oct 2008 10:04:16
textscan Sergey 22 Oct 2008 10:04:16
textread Sergey 22 Oct 2008 10:04:16
xlsread Sergey 22 Oct 2008 10:04:16
cell2csv MATLAB 03 Jun 2009 16:06:17
csv Sergio Bernal 13 Mar 2012 11:59:42

Contact us at files@mathworks.com