[FieldTrip] filter in-memory trials data with mirroring
Robin
robince at gmail.com
Fri Apr 26 11:58:56 CEST 2013
Hi Jörn,
Thanks:
http://bugzilla.fcdonders.nl/show_bug.cgi?id=2140
Cheers
Robin
On Fri, Apr 26, 2013 at 10:37 AM, "Jörn M. Horschig" <
jm.horschig at donders.ru.nl> wrote:
> Hi Robin,
>
> yep, that sounds pretty much like a bug to me. Would you mind creating a
> bug on bugzilla for this?
> http://bugzilla.fcdonders.nl/
> I will try to look into this next week. Thanks so far for reporting this.
>
> Best,
> Jörn
>
>
> On 4/26/2013 11:11 AM, Robin wrote:
>
> Hello,
>
> Is it possible filter in-memory extracted trials data with mirroring at
> the edges?
>
> When I try:
>
> % filter
> cfg = [];cfg.lpfilter = 'yes';cfg.lpfreq = '40';cfg.lpfilttype = 'but';cfg.padtype = 'mirror';% trial length is 1.1s so mirror-pad to 1.5s (200ms each side)cfg.padding = 1.5;
> flt_data = ft_preprocessing(cfg, block_data);
>
> I get:
>
> Reference to non-existent field 'Fs'.
>
> Error in ft_preprocessing (line 288)
> padding = round(cfg.padding * data.Fs);
>
> Adding block_data.Fs = block_data.fsample; seems to work. But in the
> resulting data structure the time vectors no longer match the trial data,
> so obviously something is going wrong:
>
> >> size(block_data.time{1})
>
> ans =
>
> 1 560
>
> >> size(block_data.trial{1})
>
> ans =
>
> 234 560
>
> >> size(flt_data.trial{1})
>
> ans =
>
> 234 560
>
> >> size(flt_data.time{1})
>
> ans =
>
> 1 357
>
> Is there a correct way to do this? (Filter trials with mirrored edges)
>
> Thanks,
>
> Robin
>
>
> _______________________________________________
> fieldtrip mailing listfieldtrip at donders.ru.nlhttp://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
>
>
> --
> Jörn M. Horschig
> PhD Student
> Donders Institute for Brain, Cognition and Behaviour
> Centre for Cognitive Neuroimaging
> Radboud University Nijmegen
> Neuronal Oscillations Group
> FieldTrip Development Team
>
> P.O. Box 9101
> NL-6500 HB Nijmegen
> The Netherlands
>
> Contact:
> E-Mail: jm.horschig at donders.ru.nl
> Tel: +31-(0)24-36-68493
> Web: http://www.ru.nl/donders
>
> Visiting address:
> Trigon, room 2.30
> Kapittelweg 29
> NL-6525 EN Nijmegen
> The Netherlands
>
>
> _______________________________________________
> 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/20130426/e6f3e499/attachment-0002.html>
More information about the fieldtrip
mailing list