Print

Print


Dear Charline,

This looks OK to me in terms of syntax. However, bandpass option should only be used for narrow bands (e.g. 8-12 Hz). Your situation is exactly the kind of case where one would sequentially apply high-pass and low-pass.

Best,

Vladimir


On Fri, Jun 7, 2013 at 11:47 AM, Urbain Charline <[log in to unmask]> wrote:
Dear Vladimir,

We usually used low or highpass butterworth filters and it works well! Here we would like to use a bandpass [0.5 40 Hz] filtering but we can't find the right syntax..

here is what we have done :

S = [];
S.D = [prefix file '.mat'];
prefix = ['f' prefix]
S.outfile = [prefix file '.mat'];
S.filter.type = 'butterworth';
S.filter.band = 'bandpass';
S.filter.PHz = [0.5 40]; %%problem!
S.filter.dir = 'twopass';
S.filter.order = 5;
D = spm_eeg_filter(S);

Could you help us?

Thank you for your help,

Best wishes,

Charline