0001
0002
0003
0004
0005 clear all;
0006 close all;
0007
0008 path = '/floyd3/psdlw/ptsd-pet/original-scan/';
0009 volt_ext = '.avg';
0010
0011
0012 elec_path = '/floyd3/psdlw/ptsd-pet/3dd_mean/corrected_elp/';
0013 elec_ext = 'txt';
0014
0015
0016 groups = {'c' 'p'};
0017 subjects = {'01' '02' '03' '04' '05' '06' '07' '08' '09' '10'};
0018 conditions = {'o' 'oac' 'ouc' 'out' 't' 'tac' 'tad' 'tat' 'tuc' 'tud' 'tut'};
0019
0020 for g=1:length(groups),
0021
0022 for s=1:length(subjects),
0023
0024 for c = 1:length(conditions),
0025
0026 subj = strcat(char(groups(g)),char(subjects(s)));
0027 cond = char(conditions(c));
0028
0029 [p] = eeg_toolbox_defaults('create');
0030
0031 p.volt.path = path;
0032 p.volt.file = strcat(subj,cond,volt_ext);
0033 p.volt.type = 'Scan3x';
0034
0035 [p] = eeg_open(p);
0036
0037 p.elec.path = elec_path;
0038 p.elec.file = strcat(subj,'_124fit',elec_ext);
0039 p.elec.type = 'Cartesian';
0040
0041 [p] = elec_open(p);
0042
0043 [p] = eeg_bad_channels(p);
0044 end
0045 end
0046 end