EZread

Easily read csv files containing both text and numeric columns
5.1K Downloads
Updated 6 Sep 2007

No License

Read a CSV file that contains both text and numeric columns, without having to manually specify the column type using %f, %s, etc.

MATLAB functions such as "textscan" that can read files with columns of both text and numeric values require the user to specify the data type of each column, which can be tedious for anything but the simplest file. Instead, this function determines each column's data type automatically.

Creates a MATLAB structure from the data, with fieldnames matching the headers in the file.

See also: "ezwrite"

Cite As

Paul Taylor (2024). EZread (https://www.mathworks.com/matlabcentral/fileexchange/11026-ezread), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006a
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.0.0.0

Changed %s to %q to handle strings within double quotes that have a comma within them