[FieldTrip] about detrend

Rodrigo Montefusco rmontefusco at med.uchile.cl
Fri Dec 5 23:19:28 CET 2014


Hi Yun,
If I'm right, just by high-pass filtering your data you should be able to
remove the DC component of it.

Best

Rodrigo

On Fri, Dec 5, 2014 at 4:20 PM, Yun Wen <Yun.Wen at nottingham.ac.uk> wrote:

> Hi all, I want to remove DC offset before applying the high-pass filter.
> I  was wondering if I can achieve that by putting cfg.detrend = 'yes'
> before cfg.hpfilter = 'yes', something like:
>
>
>
> cfg = [];
>
> cfg.dataset = filename_raweeg;
>
> cfg.detrend = 'yes';
>
> cfg.hpfilter = 'yes';
>
> cfg.hpfiltord = 2; % Order of the filter = 2.
>
> cfg.hpfreq = 0.1; % High-pass cutoff at 0.1 Hz;
>
> [data] = ft_preprocessing (cfg);
>
>
>
> Thank you in advance.
>
>
>
> Best,
>
> Yun
>
>
>
>
>
> This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20141205/fb6d3f6a/attachment-0002.html>


More information about the fieldtrip mailing list