On 11/20/2012 6:44 AM, Thiago wrote: > 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?
can't you just type
cat *.txt >> result.txt
If you must do it from Matlab, check the system call.
Unless you want to modify the data before putting it all in the result.txt, which was not clear that you wanted to do something with the data.
If you are going to modify the data first, then simply make a loop, read each file, put all the data in a big matrix, then export the matrix