-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathload_datasets.m
More file actions
executable file
·27 lines (18 loc) · 1.01 KB
/
load_datasets.m
File metadata and controls
executable file
·27 lines (18 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
% Directories
% Type in the locations of these directories within the ''(quotes)
workdir = '/Users/lendlab/Library/CloudStorage/Box-Box/LEND_Lab/projects/EEG_Rhyme/analysis/workdirnew'; % The 'workdir' is an active directory that MATLAB will send all working data to
[d,s,r] = xlsread ('/Users/lendlab/Library/CloudStorage/Box-Box/LEND_Lab/projects/EEG_Rhyme/analysis/matlab_scripts/subjects.xlsx'); % Type the name of the .xlsx file within the ''(quotes). Note: it must be in the current directory.
subjects = r;
numsubjects = (length(s));
% Subjects to run
subject_start = 7; % subject in position 'x' in subjects variable
subject_end = 47; % subject in position 'x' in subjects variable
% establish data objects
[ALLEEG, EEG, CURRENTSET, ALLCOM] = eeglab;
eeglab('redraw');
% establish subject list
for s = subject_start : subject_end
subject = subjects{s};
EEG = pop_loadset ([subject '_epoch_ar.set'],workdir, 'all');
[ALLEEG, EEG, CURRENTSET] = eeg_store( ALLEEG, EEG, 0 );5
end