From: Joyce Lee on
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!!!
From: us on
"Joyce Lee" <peanutty11(a)hotmail.com> wrote in message <ht0cjj$fqb$1(a)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