image thumbnail

*.txt read

version 1.0.0.0 (1.56 KB) by Giuliano Langella
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 (2021). *.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

Community Treasure Hunt

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

Start Hunting!