Hi,
I'm following the EEG preprocessing instructions for the "Multimodal
Faces" data set in SPM8. Unfortunately copy-pasting the conditions
labels as described under 34.4.5 does not work for me (it does only
paste into once cell, not the whole column, I'm using Matlab R2007b
under Linux). So I wrote a script to do the epoching and assign the
right condition labels. However, I must be doing something wrong, as
Matlab stays busy forever (epoching as described under 34.4.4 is very
fast). I'm using the following script:
-------------------------------------------------------------------------------
labels = textread('condition_labels.txt', '%s');
S = struct;
S.D = spm_eeg_load('Mdspm8_faces_run1.mat')
S.pretrig = 400;
S.posttrig = 600;
S.trialdef = struct
for ii=1:length(labels)
S.trialdef(ii,1).conditionlabel = labels{ii};
S.trialdef(ii,1).eventtype = 'STATUS';
S.trialdef(ii,1).eventvalue = '1';
end
S.reviewtrials = false
S.save = true
D = spm_eeg_epochs(S)
--------------------------------------------------------------------------
Any hints on what I'm doing wrong are greatly appreciated.
Martin
______________________________________
Martin Luessi, M.S.
PhD Candidate
Department of Electrical Engineering and Computer Science
Northwestern University
http://ivpl.eecs.northwestern.edu/people/mluessi
|