[Eeglablist] A (Super) Quick Question on Filtering

Cedric Cannard ccannard at protonmail.com
Thu Jun 4 10:11:03 PDT 2020


Hi Mark,

You can just do:
EEG = pop_eegfiltnew(EEG, 'locutoff',1,'plotfreqz',0);  %higpass 1 hz (filters frequencies < 1 hz)
EEG = pop_eegfiltnew(EEG, 'hicutoff',30,'plotfreqz',0);  %lowpass filter (filters all frequencies > 30 hz)


Best,

Cédric Cannard


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, June 4, 2020 3:07 AM, Andreas Widmann <widmann at uni-leipzig.de> wrote:

> Hi Mark,
>
> > If I seek to, in scripting, filter EEG data from 1 to 30Hz on the command
> > line, are the two lines of code below ok? I am not familiar with the
> > specifics of filtering and I would really appreciate some advice in the
> > right direction:
> > temp = pop_eegfiltnew(EEG, 1, 0, [], 0);
> > EEG = pop_eegfiltnew(temp, [],30,132,0,[],0);
>
> In principle this should give you a bandpass filter with a passband from 1 to 30 Hz, yes. Note, that filters are preferably reported with cutoff frequencies rather than band edges. Therefore, when reporting this filter add the information that 1-30 Hz refers to passband edges. Find information on true cutoff frequency, filter order, and transition band width on the command line and preferably report these.
>
> The syntax is different between your two lines. Once you specify the missing band edge as 0 and once as empty. You specify also the additional command line options differently between lines. Intended? This makes the code hard to read (but not wrong).
>
> Hope this helps,
> Andreas
>
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu





More information about the eeglablist mailing list