<div dir="ltr">Dear Andreas and Arnaud,<div><br></div><div>Thank you for your reply. I wasn't sure whether to report this problem to the EEGLAB mailing list or the ERPLAB mailing list, but now I know.</div><div><br></div><div>Kind regards,</div><div>Amélie la Roi</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 16, 2018 at 5:33 PM, Andreas Widmann <span dir="ltr"><<a href="mailto:widmann@uni-leipzig.de" target="_blank">widmann@uni-leipzig.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Amelie,<br>
<br>
pop_basicfilter is an ERPLAB function. I suggest reporting the problem in the ERPLAB mailing list (<a href="https://erpinfo.org/erplab-email-list" rel="noreferrer" target="_blank">https://erpinfo.org/erplab-<wbr>email-list</a>).<br>
<br>
Best,<br>
Andreas<br>
<div><div class="h5"><br>
> Am 15.10.2018 um 13:35 schrieb Roi, la, A. <<a href="mailto:a.la.roi@rug.nl">a.la.roi@rug.nl</a>>:<br>
> <br>
> Dear list,<br>
> <br>
> When preprocessing my data, I use the ERPLAB toolbox to filter the data with a 1-50 Hz bandpass filter. See the following code:<br>
> <br>
> EEG = pop_loadset; % load the 'IAS1_pruned_[ppnr]' dataset from your data folder that pops up<br>
> EEG  = pop_basicfilter( EEG,  1:64 , 'Boundary', 'boundary', 'Cutoff', [ 1 50], 'Design', 'butter', 'Filter', 'bandpass', 'Order',  2, 'RemoveDC', 'on' );<br>
> <br>
> % Rename the dataset<br>
> EEG.setname='IAS1_1-50filter_<wbr>19';<br>
> EEG = eeg_checkset( EEG );<br>
> <br>
> % Save the dataset<br>
> EEG = pop_saveset( EEG,...<br>
>     'filename','IAS1_1-50filter_<wbr>19.set','filepath','Y:\\staff\<wbr>\let\\SemanticsAndCognition\\<wbr>LaRoi\\PhD\\Study 1 - EEG+priming task\\Data\\EEG\\<wbr>Preprocessing\\');<br>
> EEG = eeg_checkset( EEG );<br>
> <br>
> <br>
> <br>
> 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:<br>
> <br>
> Index in position 2 exceeds array bounds (must not exceed 124).<br>
> <br>
> Error in removedc (line 57)<br>
> meanvalue = mean(data(chanArray,windowsam(<wbr>1):windowsam(2)),2);<br>
> <br>
> Error in basicfilter (line 240)<br>
>                               EEG.data(chanArray,bp1:bp2,j) = removedc(EEG.data(chanArray,<wbr>bp1:bp2,j), round(EEG.srate/2));<br>
> <br>
> Error in pop_basicfilter (line 298)<br>
> [EEG, ferror] = basicfilter( EEG, options2{:});<br>
> <br>
> 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.<br>
> <br>
> Many thanks in advance.<br>
> <br>
> Kind regards,<br>
> Amélie la Roi<br>
> PhD candidate University of Groningen, the Netherlands<br>
</div></div>>  IAS1_pruned_19.fdt<br>
>  IAS1_pruned_19.set<br>
<span class="">> <br>
> <br>
> <br>
> -- <br>
> Amélie la Roi, MA<br>
> PhD student CLCG, Semantics and Cognition<br>
> University of Groningen, the Netherlands<br>
> Harmony building, room 1311.0412 | Phone: +31 50 363 6683<br>
> <br>
</span>> ______________________________<wbr>_________________<br>
> Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/<wbr>eeglabmail.html</a><br>
> To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.<wbr>ucsd.edu</a><br>
> For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.<wbr>edu</a><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Amélie la Roi, MA<div>PhD student CLCG, Semantics and Cognition</div><div>University of Groningen, the Netherlands</div><div>Harmony building, room 1311.0412 | Phone: +31 50 363 6683</div><div><br></div></div></div></div></div></div></div></div></div>
</div>