Multi-Format CSV Reader

version 1.1.0.1 (1.83 KB) by Cole Stephens
MFCSVREAD reads a CSV file containing both text & numeric data.

18.9K Downloads

Updated 1 Sep 2016

View License

"mfcsvread" reads a CSV file containing both text & numeric data. MATLAB's CSVREAD function will work with all numeric, or all text data, but not both. It's common to have a file with a single line of comma separated text headers followed by many rows of numeric data. xlsread is limited in the number of rows & colums (actually, Excel is the limitation) it can read.
The CSV file should look like:
comma, separated, text, ...
1,2,3,4,5,...
6,7,8,9,10,...
etc...

The output is a structure with the column headers as fields in a structure, each with a vector of data.

Cite As

Cole Stephens (2022). Multi-Format CSV Reader (https://www.mathworks.com/matlabcentral/fileexchange/6012-multi-format-csv-reader), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP1
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!