Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Importing all files from a folder

Subject: Importing all files from a folder

From: Nicolas

Date: 8 Apr, 2010 06:33:08

Message: 1 of 2

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!

Subject: Importing all files from a folder

From: us

Date: 8 Apr, 2010 06:39:08

Message: 2 of 2

"Nicolas " <nickbedo@yahoo.com> wrote in message <hpjtb4$5md$1@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

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us