diff --git a/src/B_downs_filter_chaninfo_exclchan.m b/src/B_downs_filter_chaninfo_exclchan.m index 35a7525..14cc4b9 100644 --- a/src/B_downs_filter_chaninfo_exclchan.m +++ b/src/B_downs_filter_chaninfo_exclchan.m @@ -30,14 +30,16 @@ %adding channel location if EEG.nbchan >63 && EEG.nbchan < 95 %64chan cap (can be a lot of externals, this makes sure that it includes a everything that is under 96 channels, which could be an extra ribbon) EEG=pop_chanedit(EEG, 'lookup',[eeglab_location 'plugins\dipfit\standard_BESA\standard-10-5-cap385.elp']); %make sure you put here the location of this file for your computer - %deleting bad channels + EEG = pop_saveset( EEG, 'filename',[subject_list{s} '_info.set'],'filepath', data_path); + %deleting bad channels EEG = pop_rejchan(EEG,'elec', [1:64],'threshold',5,'norm','on','measure','kurt'); elseif EEG.nbchan >159 && EEG.nbchan < 191 %160chan cap EEG=pop_chanedit(EEG, 'lookup',[scripts_location 'BioSemi160.sfp']); %make sure you put here the location of this file for your computer - %deleting bad channels + EEG = pop_saveset( EEG, 'filename',[subject_list{s} '_info.set'],'filepath', data_path); + %deleting bad channels EEG = pop_rejchan(EEG,'elec', [1:160],'threshold',5,'norm','on','measure','kurt'); end - %adding info to the EEG structure + %adding info to the EEG structure EEG = pop_saveset( EEG, 'filename',[subject_list{s} '_exchn.set'],'filepath', data_path); end