csv2Cell(csv_fname,​delimiter,header_li​nes)

Simple function that imports a 2D text file spreadsheet into a 2D cell array.
574 Downloads
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 (2024). csv2Cell(csv_fname,delimiter,header_lines) (https://www.mathworks.com/matlabcentral/fileexchange/32778-csv2cell-csv_fname-delimiter-header_lines), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
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

1.0.0.0