-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathloadsets.m
More file actions
executable file
·29 lines (20 loc) · 1.1 KB
/
loadsets.m
File metadata and controls
executable file
·29 lines (20 loc) · 1.1 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
28
29
%% Load subjects from excel
% Author: JMS
% Date created: November 21, 2022
%Load subject excel file
[d,s,r]=xlsread('rhyme_subjects.xlsx');
[ALLEEG EEG CURRENTSET ALLCOM] = eeglab;
for k=1:length(s);
EEG = pop_loadset('filename',[s{k} '_epoch_bin11.set'],'filepath',('/Volumes/lendlab/projects/EEG_Rhyme/analysis/wkdir/epoch_bins/rhyme/'));
[ALLEEG, EEG, CURRENTSET] = eeg_store( ALLEEG, EEG, 0 );
EEG = pop_loadset('filename',[s{k} '_epoch_bin12.set'],'filepath',('/Volumes/lendlab/projects/EEG_Rhyme/analysis/wkdir/epoch_bins/rhyme/'));
[ALLEEG, EEG, CURRENTSET] = eeg_store( ALLEEG, EEG, 0 );
end
[d,s,r]=xlsread('norhyme_subjects.xlsx');
for k=1:length(s);
EEG = pop_loadset('filename',[s{k} '_epoch_bin11.set'],'filepath',('/Volumes/lendlab/projects/EEG_Rhyme/analysis/wkdir/epoch_bins/no_rhyme/'));
[ALLEEG, EEG, CURRENTSET] = eeg_store( ALLEEG, EEG, 0 );
EEG = pop_loadset('filename',[s{k} '_epoch_bin12.set'],'filepath',('/Volumes/lendlab/projects/EEG_Rhyme/analysis/wkdir/epoch_bins/no_rhyme/'));
[ALLEEG, EEG, CURRENTSET] = eeg_store( ALLEEG, EEG, 0 );
end
disp('LoadDataSets is done running');