read text files and change format
Show older comments
i have massive number of text files that i want to get data from them by adding value written in each file to other values in the same file and extracting the new values with respect to their other values in the file then reformatting it to desire format
Answers (1)
dpb
on 11 Oct 2014
Say what???? While that description means something to you, for us having nothing else to go on it's an almost useless problem statement.
Not enough detail to say anything specific but,
a) see the FAQ on processing multiple files at
I'm particularly partial to the dir solution as it eliminates a lot of otherwise tedious steps in creating file names, etc.
b) Open and read each file per a) incorporating whatever operations on the data desired
c) Write the output as desired...there are a multitude of high-, intermediate- and low-level i/o functions in Matlab. Start with
help iofun
and scan thru the list to see what most closely suits your desired output.
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!