[Eeglablist] Why does basic filter gives an error in one particular dataset, but not in the others?

Roi, la, A. a.la.roi at rug.nl
Mon Oct 15 04:35:06 PDT 2018


Dear list,

When preprocessing my data, I use the ERPLAB toolbox to filter the data
with a 1-50 Hz bandpass filter. See the following code:

EEG = pop_loadset; % load the 'IAS1_pruned_[ppnr]' dataset from your data
folder that pops up
EEG  = pop_basicfilter( EEG,  1:64 , 'Boundary', 'boundary', 'Cutoff', [ 1
50], 'Design', 'butter', 'Filter', 'bandpass', 'Order',  2, 'RemoveDC',
'on' );

% Rename the dataset
EEG.setname='IAS1_1-50filter_19';
EEG = eeg_checkset( EEG );

% Save the dataset
EEG = pop_saveset( EEG,...

'filename','IAS1_1-50filter_19.set','filepath','Y:\\staff\\let\\SemanticsAndCognition\\LaRoi\\PhD\\Study
1 - EEG+priming task\\Data\\EEG\\Preprocessing\\');
EEG = eeg_checkset( EEG );



For all participants, this worked fine. However, for one particular
participant I get an error when running the following code. The error
message is the following:

Index in position 2 exceeds array bounds (must not exceed 124).

Error in removedc (line 57)
meanvalue = mean(data(chanArray,windowsam(1):windowsam(2)),2);

Error in basicfilter (line 240)
                              EEG.data(chanArray,bp1:bp2,j) =
removedc(EEG.data(chanArray,bp1:bp2,j), round(EEG.srate/2));

Error in pop_basicfilter (line 298)
[EEG, ferror] = basicfilter( EEG, options2{:});

I don't no where this error comes from and how I can solve it, since I'm
doing exactly the same for all participants. Could you help me out? I added
the relevant dataset to the attachment.

Many thanks in advance.

Kind regards,
Amélie la Roi
PhD candidate University of Groningen, the Netherlands
 IAS1_pruned_19.fdt
<https://drive.google.com/a/rug.nl/file/d/1idE0498B0t2zetB6yR79WH57k_NGQy5A/view?usp=drive_web>
 IAS1_pruned_19.set
<https://drive.google.com/a/rug.nl/file/d/1V0mOcqFpOM2W6FJ8TprhJzusqzI1a7iy/view?usp=drive_web>



-- 
Amélie la Roi, MA
PhD student CLCG, Semantics and Cognition
University of Groningen, the Netherlands
Harmony building, room 1311.0412 | Phone: +31 50 363 6683
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20181015/0b1ab006/attachment.html>


More information about the eeglablist mailing list