Use 1 indexing

This commit is contained in:
2024-07-31 21:37:35 -04:00
부모 458dbed560
커밋 a78b8e4d96
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@@ -57,6 +57,7 @@ fprintf('This script name: %s\n', ezFileName);
};
for i=1:length(dirsToScan)
d=dirsToScan(i);
d=char(d);
if exist(d, 'dir')
subDirs=dir(d);
pattern='^\d{6}_.*_.*';
@@ -68,7 +69,7 @@ fprintf('This script name: %s\n', ezFileName);
end
fprintf('Scanning inside %s for a project directory\n', char(d));
sortedMatchedDirs=sortrows(matchedDirs);
project=sortedMatchedDirs{0}; % select the latest dir (by date prefix)
project=sortedMatchedDirs{1}; % select the latest dir (by date prefix)
fprintf('Selected latest project directory %s\n', char(project));
end
end