From: Nicolas on
Hello,

I am trying to automate the importing of data files for analysis. Essentially, I want to allow the user to choose a directory, and then have all of the data files from that directory be imported.

For example:
/dir1
file1
file2
file3

(choose 'dir1' and have Matlab begin importing 'file1')

I'm just not too familiar with the syntax of choosing directories and paths. And since I don't know the terminology for this case, I'm not sure if there is a Help page already dedicated to it. I think if I get the basics, I can loop it up just fine.

Any pointers or links would be appreciated.

Thanks in advance!
From: us on
"Nicolas " <nickbedo(a)yahoo.com> wrote in message <hpjtb4$5md$1(a)fred.mathworks.com>...
> Hello,
>
> I am trying to automate the importing of data files for analysis. Essentially, I want to allow the user to choose a directory, and then have all of the data files from that directory be imported.
>
> For example:
> /dir1
> file1
> file2
> file3
>
> (choose 'dir1' and have Matlab begin importing 'file1')
>
> I'm just not too familiar with the syntax of choosing directories and paths. And since I don't know the terminology for this case, I'm not sure if there is a Help page already dedicated to it. I think if I get the basics, I can loop it up just fine.
>
> Any pointers or links would be appreciated.
>
> Thanks in advance!

a hint:

help dir;
% then, look at

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

us