Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Import multiple data files and write to a single output file
Replies: 1   Last Post: Nov 20, 2012 7:48 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
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
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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!!!



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.