File Exchange

image thumbnail

csv2Cell(csv_fname,​delimiter,header_li​nes)

version 1.2.0.0 (2.67 KB) by David Groppe
Simple function that imports a 2D text file spreadsheet into a 2D cell array.

1 Download

Updated 14 Jul 2015

View License

Imports a 2D text file spreadsheet into a 2D cell array. Cell boundaries in the spreadsheet need to be marked by a unique character (e.g., a comma).

Cite As

David Groppe (2020). csv2Cell(csv_fname,delimiter,header_lines) (https://www.mathworks.com/matlabcentral/fileexchange/32778-csv2cell-csv_fname-delimiter-header_lines), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

hypmfrcl

Do not use secondary character for cells... See CSV generated by excel and others...

Bart

Updates

1.2.0.0

Modified to make importing tab delimited text files possible.

1.1.0.0

Added option to ignore an arbitrary number of header lines

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux