How to list files in the directory

66 ビュー (過去 30 日間)
Ompilela Tshikosi
Ompilela Tshikosi 2020 年 5 月 27 日
コメント済み: Stephen23 2020 年 5 月 27 日
How do i list file with certain prefix for instance file that include 'Data' in the directory and of certain type for instance only excel file ('.xlsx')

採用された回答

Stephen23
Stephen23 2020 年 5 月 27 日
D = 'absolute/relative path to where the files are saved';
S = dir(fullfile(D,'Data*.xlsx'))
  2 件のコメント
Ompilela Tshikosi
Ompilela Tshikosi 2020 年 5 月 27 日
Thank you. It worked
Stephen23
Stephen23 2020 年 5 月 27 日
@Ompilela Tshikosi : I hope that it helped. Please remember to accept my answer!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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