File Exchange

image thumbnail

csv2cell

version 1.0 (988 Bytes) by

This functions reads a a text file into a cell array

4 Downloads

Updated

No License

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

Comments and Ratings (3)

João Neves

Thanks

eric larrieux

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

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.

Updates

adding keywords

MATLAB Release
MATLAB 7.5 (R2007b)
Acknowledgements

Inspired by: cell2csv

Inspired: Flotation kinetics - modeling

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video