checking folder has more than one file with similar name
조회 수: 2 (최근 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에서 Verification, Validation, and Test에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!