<div dir="ltr"><div class="gmail_default" style="color:rgb(51,51,153)">​Greetings, would it be possible for eeglab developers to put in a formal warning on the GUI option that allows running of this broken old function, including a link to Andreas' article? Ideally it would be in RED, and have a "Warning" right within the GUI (not just in the output). If a car had an airbag that did not work, one should not be able to start the car. One should not have to crash to find out the airbag doesn't work anymore :)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 29, 2017 at 2:45 AM, 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 Luis,<br>
<span class=""><br>
> I'm trying to run this code:<br>
><br>
> EEGOUT = pop_eegfilt( EEG, 45, 55, 'revfilt',1);<br>
><br>
> But Matlab shows this error:<br>
><br>
> Filter error: continuous data portion too narrow (DC removed if highpass only)<br>
<br>
</span>(1) Do NOT use pop_eegfilt („legacy" in GUI)! it is known to be broken since many years. It is deprecated and left for backward compatibility only (see <a href="https://www.frontiersin.org/articles/10.3389/fpsyg.2012.00233/full" rel="noreferrer" target="_blank">https://www.frontiersin.org/<wbr>articles/10.3389/fpsyg.2012.<wbr>00233/full</a> for more details).<br>
(2) The syntax is wrong. It should not take string arguments. Correct syntax would be pop_eegfilt( EEG, 45, 55, [], 1 );<br>
(3) The error message suggests that you have very short continuous segments (or epoched data?). The error is due to pop_eegfilt using filtfilt not accepting segments shorter than 3 times filter order (IIRC).<br>
<br>
However, note that notch filters do show ringing at the signal edges. Thus, you should not notch filter short segments or epochs. Even if the solution suggested below would run it is not actually recommended to be used here.<br>
<span class=""><br>
> Could anyone tell me which it is the best way to run a Notch filter?<br>
<br>
</span>EEGOUT = pop_eegfiltnew( EEG, 47.5, 52.5, [], 1 );<br>
<br>
Hope this helps! Best,<br>
Andreas<br>
<div class="HOEnZb"><div class="h5">______________________________<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></div></div></blockquote></div><br></div>