Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
Thiago
Posts:
3
Registered:
9/27/12
|
|
Import multiple data files and write to a single output file
Posted:
Nov 20, 2012 7:44 AM
|
|
Hello guys I'm desperate to solve this issue.. i have 27 .txt files I need to open these 27 files into matlab and then write these 27 to a single .txt file Am I clear? Open 27 files, and create a single matrix with all information of these 27 files. This is how each of these 27 files looks like
# Arquivo de Origem: chuvaCRU # Variável: prec # Unidade: Desconhecida
-40.0000 -17.7500 1961-01-02 136.000000000000 -40.0000 -17.7500 1961-02-02 39.000000000000 -40.0000 -17.7500 1961-03-02 31.000000000000 -40.0000 -17.7500 1961-04-02 76.000000000000 -40.0000 -17.7500 1961-05-02 74.000000000000 -40.0000 -17.7500 1961-06-02 86.000000000000 -40.0000 -17.7500 1961-07-02 86.000000000000 -40.0000 -17.7500 1961-08-02 12.000000000000 -40.0000 -17.7500 1961-09-02 6.000000000000 -40.0000 -17.7500 1961-10-02 33.000000000000
It has 4 headlines (which are important), 4 columns, and many rows (almost 2,000 per file)
Thank you so much!!!
|
|
|
|