[Eeglablist] Zero-phase filters in EEGLAB
Eric HG
erichg2013 at gmail.com
Mon May 25 03:08:59 PDT 2020
Hi Andreas,
Thanks a lot for your reply!
I'm sorry to bother you with this but as far as I know, the following code
also implements a zero-phase filter:
dev = 0.001; df = 2;
beta = pop_kaiserbeta(dev);
m = pop_firwsord('kaiser', EEG.srate, df, dev);
[EEG, com, b] = pop_firws(EEG, 'fcutoff', [1 70], 'ftype', 'bandpass',
'wtype', 'kaiser', 'warg', beta, 'forder', m);
Is this correct? And do you have any recommendations for the filter order?
Best,
Eric
On Tue, May 12, 2020 at 9:58 AM Andreas Widmann <widmann at uni-leipzig.de>
wrote:
> Hi Eric,
>
> > I'm trying to use a zero-phase filter in EEGLAB.
> >
> > Does anyone have any recommendations? Is pop_eegfiltnew a zero-phase
> > filter?
> Yes, pop_eegfiltnew implements a zero-phase filter (as long as you don't
> check the minimum-phase causal checkbox or use the corresponding minphase
> command line option). Also windowed-sinc FIR (pop_firws) and
> Parks-McClellan FIR filters (pop_firpm) all implement zero-phase filters.
>
> Best,
> Andreas
More information about the eeglablist
mailing list