-
Notifications
You must be signed in to change notification settings - Fork 0
/
erdw1_PosOWs.m
19 lines (18 loc) · 1008 Bytes
/
erdw1_PosOWs.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
% This program converts epoched, Pos OW EEGLAB files into ERPLAB sets
% for statistical extraction using ERLAB.
%
% Author: Emily Wu
% Date: June 10, 2016
subprompt = 'Which subject? ';
subnum = int2str(input(subprompt));
filename = strcat('erdw1 s', subnum, ' Positive OW.set');
EEG = pop_loadset('filename', filename,'filepath','C:\\Users\\RA\\Documents\\MATLAB\\eeglab13_5_4b\\erdw1_64\\07_Averaged\\Positive\\OW\\');
EEG = eeg_checkset( EEG );
EEG = pop_epoch2continuous(EEG);
new_name = strcat('erdw1 s', subnum);
EEG.setname= new_name;
EEG = eeg_checkset( EEG );
EEG = pop_editeventlist( EEG , 'AlphanumericCleaning', 'on', 'BoundaryNumeric', { -99}, 'BoundaryString', { 'boundary' }, 'ExportEL', 'Pos OWs everything elist.txt', 'List', 'C:\Users\RA\Documents\MATLAB\eeglab13_5_4b\erdw1_64\ERP sets\Pos OWs.txt', 'SendEL2', 'EEG&Text', 'UpdateEEG', 'on', 'Warning', 'on' );
EEG = eeg_checkset( EEG );
EEG = pop_epochbin( EEG , [-250.0 1000.0], 'pre');
EEG = eeg_checkset( EEG );