*.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.
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 (2026). *.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 LinuxCategories
Find more on Low-Level File I/O in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
