read text files and change format
이전 댓글 표시
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
답변 (1개)
dpb
2014년 10월 11일
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.
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!