Closed pauldhami closed 3 years ago
Hi Paul
that is a good question! We should explain it better in the wiki.
You need to specify the EOG channels for the EOG regression here:
'EEGSystem', struct('name', 'Others',...
'sys10_20', 1, ...
'locFile', 'CANBIND58_chanloc.ced', ...
'refChan', struct([]), ...
'fileLocType', 'ced',...
'eogChans', [], ...
'powerLineFreq', []), ...
e.g.
'eogChans', [1 8 125 126], ...
If EOG is empty, you get the matrix dimension error
>> eog = double.empty
eog =
[]
>> eeg = 1:10
eeg =
1 2 3 4 5 6 7 8 9 10
>> eegclean = eeg - eog * (eog \ eeg);
Error using \
Matrix dimensions must agree.
Let me know, if you have any other issues.
Best, Dawid
Hi Dawid,
thank you again for your response!
So if my experiment had no EOG recordings, I would then set 'EOGRegressionParams' structure to: struct([])?
I ask because for some reason, I had 'EOGRegressionParams' set to the default (), but there was no error thrown out when using it when just PREP (and not CRD), even though I had 'eogChans' empty.
Thank you again for your help. Paul
Hi Paul
Your welcome!
Exactly, if 'EOGRegressionParams', struct(), ... then the EOG regression is performed. But you need to specify the EOG channels as mentioned above. If 'EOGRegressionParams', struct([]),... then EOG regression is skipped and not performed.
The error occurred in performEOGRegression (line 34), not in CRD :) Empty EOG is no problem for PREP and CRD. If EOG list is empty, systemDependentParse.m creates an EOG struct similar to EEG struct, but with no data (line 434).
Best Dawid
Greetings,
Sorry for another question, but I am having trouble with the preprocessing of a single continuous resting state EEG file.
I am trying to replicate the different preprocessing pipelines as described in figure 3 of the Automagic Neuroimage paper.
Specifically, I am interested in comparing the use of PREP versus PREP + clean rawdata (with both being followed by EOGr and MARA).
Although just running PREP seems to work, I am getting an error with regards to clean rawdata.
This is my structure and commands:
I get the following error with regards to clean raw_data:
Any advice as to what I may be doing wrong?
Thank you in advance. Paul