read excel files from different directories

4 Ansichten (letzte 30 Tage)
Anci
Anci am 24 Mai 2011
Hello,
I have a directory (named 'data') with subdirectories or different names (named 'bol', 'acro' and 'platin')- each of these subdirectories have one or two subdirectories (named 'up' and/or 'down') and then there are excel files that I have to read and modified. How can I create a Matlab code to be able to get to these excel files without moving them to the same directory. Thanks.

Akzeptierte Antwort

Arnaud Miege
Arnaud Miege am 24 Mai 2011
Use a combination of dir, isdir, cd and pwd. For more details, see How can I process a sequence of files? on the MATLAB FAQ.
HTH,
Arnaud

Weitere Antworten (0)

Kategorien

Mehr zu File Operations finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by