12345678910111213141516171819202122 |
- % function PreprocessRegex.m
- %
- % This function finds all the directories in the provided regular expression
- % and preprocesses the data for runIds from 1 to 8
- %
- % input:
- % regex - dir regex
- %
- % ex. PreprocessRegex('/mnt/scratch/ioannis/studyforrest_preprocessed/sub-*/')
- function PreprocessRegex(regex)
- dirs = glob(regex);
- runIds = 1:8;
- for dir=dirs'
- for runId=runIds
- fprintf('Processing run %d from %s\n', runId, dir{1});
- Preprocess(dir{1}, runId);
- end
- end
- end
|