How to list files in the directory

76 次查看(过去 30 天)
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 个评论
Stephen23
Stephen23 2020-5-27
@Ompilela Tshikosi : I hope that it helped. Please remember to accept my answer!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by