Dear Experts,
Whilst using SPM8 I was successful in re-referencing my EEG data to the combined mastoids using the following script:
if reref==1
file=['spm8_gemma_msc_' subj_dir(2:5) '.mat'];
S = [];
S.D = file;
S.refchan={'EXG5', 'EXG6'};
D=spm_eeg_reref_eeg(S)
end
which no longer works for me in SPM12b.
I see that the channels are labelled differently in the new version (Ch1, Ch2... Ch(n)) and I have changed the labels of the S.refchan to match these new labels. I have also checked that the appropriate channels are identified as 'EEG' and not 'Other'. I've also changed the prefix of the file in line with the syntax of the new version. My updated script looks like:
if reref==1
file=['spmeeg_gemma_msc_' subj_dir(2:5) '.mat'];
S = [];
S.D = file;
S.refchan={'Ch69', 'Ch70'};
[D, S]=spm_eeg_reref_eeg(S);
end
but this is still not working.
Could anyone point out what is wrong?
Thanks for your help,
Best wishes,
Gemma.
|