The following Matlab project contains the source code and Matlab examples used for automatically finds an indexed series of files in a directory (e.g. img001.tif, img002.tif, etc.) . function [returnFileGroup] = findFileSeries(filePath, allowskiplength, inclSmallerNumbers) % input is the filepath of one file in a series of files that have % some numeric indexing in their filenames % allowskiplength allows skipping of numbers in the index (default = 0 => % no skipping allowed, only an uninterrupted series of indixed filenames will be returned) % inclSmallerNumbers: if false, we only look for filenames containing higher % indices, if true, we also accept filenames with smaller indices than in filePath; default % = false.
The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.