diff --git a/FindBestParametersFile.m b/FindBestParametersFile.m index d08ec6a3f52239b45f53ffec0ad0b392c5ba1683..5e15d89eb69757faa36db9a9afcfca677c66d271 100644 --- a/FindBestParametersFile.m +++ b/FindBestParametersFile.m @@ -11,7 +11,7 @@ if useSub pathToSearch=[pathToSearch '/**/*.mat']; end files=dir(pathToSearch); -assert(length(files)>2,'No files to search in the provided path') +assert(length(files)>0,'No files to search in the provided path') names=string({files.name}); files(cellfun(@isempty,regexp(names, key)))=[]; %removes all files not containing "key"