checking folder has more than one file with similar name
1 回表示 (過去 30 日間)
古いコメントを表示
採用された回答
Voss
2022 年 9 月 9 日
編集済み: Voss
2022 年 9 月 9 日
% use the name of the folder you want to check:
folder = './';
% get info about the files in that folder whose name starts with 'test' and
% whose extension is .mat:
files = dir(fullfile(folder,'test*.mat'));
% see the files' names:
{files.name}
% and/or, see if there is more than one such file:
numel(files) > 1
% etc.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Software Development Tools についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!