Read Text File Data

Read experimental float data from many .txt files.

You are now following this Submission

This is a small function I wrote to solve the eternal nuisance or trying to read in experimental data from a bunch of text files containing similar data.

e.g.
solution_001.txt
solution_002.txt
.
.
.
solution_00457.txt

All having a similar data structure in them.

The delimiters and the type of data can be tweaked within the code. This is a little hard-coded to meet one of my demands. Please notice that there are 4 parts of reading in the data and some stray characters such as '('. These can obviously be tweaked to suit specific needs. This function should give a general structure for such data reading from multiple files.

Cite As

Akshaya Thippur (2026). Read Text File Data (https://www.mathworks.com/matlabcentral/fileexchange/36712-read-text-file-data), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0