how to import data from multiple text files?

  • Follow


Hi,

 I have 500+ text files, each storing an integer value inside, and Im trying to import all those values to matlab by using textscan function...the files are all having similar names like test1.txt, test2.txt ....sounds not difficult but as a beginner it takes me few hours searching through the internet end up very confusing...

Any nice and kind expert can help me?? It will be much appreciated!!!
0
Reply Joyce 5/19/2010 9:56:04 AM

"Joyce Lee" <peanutty11@hotmail.com> wrote in message <ht0cjj$fqb$1@fred.mathworks.com>...
> Hi,
> 
>  I have 500+ text files, each storing an integer value inside, and Im trying to import all those values to matlab by using textscan function...the files are all having similar names like test1.txt, test2.txt ....sounds not difficult but as a beginner it takes me few hours searching through the internet end up very confusing...
> 
> Any nice and kind expert can help me?? It will be much appreciated!!!

a hint:
- on processing files in a loop...

http://matlabwiki.mathworks.com/MATLAB_FAQ#How_can_I_process_a_sequence_of_files.3F

us
0
Reply us 5/19/2010 10:07:03 AM


1 Replies
709 Views

(page loaded in 0.189 seconds)

Similiar Articles:













7/20/2012 8:11:51 AM


Reply: