Read Text File Data
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 (2024). Read Text File Data (https://www.mathworks.com/matlabcentral/fileexchange/36712-read-text-file-data), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |