diff --git a/pop_importbids.m b/pop_importbids.m index c6dd6b7..2ea02cc 100644 --- a/pop_importbids.m +++ b/pop_importbids.m @@ -113,8 +113,11 @@ % find folder containing eeg if exist(fullfile(parentSubjectFolder, 'eeg')) subjectFolder = { fullfile(parentSubjectFolder, 'eeg') }; + subjectFolderOut = { fullfile(outputSubjectFolder, 'eeg') }; else subFolders = dir(fullfile(parentSubjectFolder, 'ses*')); + subjectFolder = {}; + subjectFolderOut = {}; for iFold = 1:length(subFolders) subjectFolder{ iFold} = fullfile(parentSubjectFolder, subFolders(iFold).name, 'eeg');