How to find files with specified filenames within a folder?

249 ビュー (過去 30 日間)
Artem Smirnov
Artem Smirnov 2017 年 2 月 9 日
回答済み: KSSV 2017 年 2 月 9 日
Hello. My problem is the following. I have downloaded tons of data from Intermagnet (I'm conducting research connected with magnetic obervatories). They produce one file every day for each observatory, so I have 80 observatories(=>80 folders) and 365 files in each of the folders. The matter is that the structure of every observatory folder can be totally different. Files can be sorted by months (into 12 subfolders) or can be sorted by other means or they can be not sorted at all. Still, I have to reach files regardless of their location within a folder. By that I mean:
aaa % this is an observatory folder
->aaa01 % - January folder
->IAGA2002 %Format of the files
->aaa01dmin.min %Here is the file, afterall
OR the structure can be like
aaa
->IAGA2002
->aaa01dmin.min
OR the structure can be different from this. How do I get the file, if I know that its name is aaa01dmin.min and it is located SOMEWHERE in aaa folder? I am looking forward to hearing from you.

回答 (1 件)

KSSV
KSSV 2017 年 2 月 9 日

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by