Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

extracting data from multiple text files

1 view (last 30 days)
Saleem Sarwar
Saleem Sarwar on 6 Oct 2015
Edited: per isakson on 6 Oct 2015
I am very thankful to mathwork community to promptly answers the queries asked by me. I am very new to matlab, wrote my first code to compute runoff using antecedent Soil Moisture Method and it is working well.
The only problem that I am facing now, is to extract data from text files. I asked the same question previously but was not able to solve the problem. My input data is in the form of text files, each file having daily rainfall data of specific year. I simply need to translate information into single file having 2 columns (1st column to represent date, mm/dd/yyyy and 2nd column to represent rainfall. I have 50 text files of a gauging station and requires to create a single output file from all these text files. The input file is attached for your reference.
Thanks for your cooperation
  2 Comments
per isakson
per isakson on 6 Oct 2015
Edited: per isakson on 6 Oct 2015
How to distinguish those 50 files from other files on the hard disk? Are they the only txt-files in a special folder? Are they named JHMRRRnm.txt where n and m are digits? Or what?

Answers (0)

This question is closed.

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!