*.txt read

This function reads a tab delimited txt file into a cell array.
1.6K Downloads
Updated 24 Apr 2009

View License

The file to be imported can have 1 or more both column and/or row header lines. You can import tab delimited text files in which textual data is grouped all at the starting rows and columns and all numerical data fill the rest of the file.
If you have troubles don't hesitate to contact me.
Example of *.txt file:

t t t t t t % 1st column header
t t t t t t % 2nd column header
t t 1 1 1 1
t t 2 2 2 2.
| | |
| | numerical data
| 2nd row header
1st row header

Cite As

Giuliano Langella (2024). *.txt read (https://www.mathworks.com/matlabcentral/fileexchange/23890-txt-read), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Low-Level File I/O in Help Center and MATLAB Answers

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