[FieldTrip] error in the artifact rejection tutorial?

jan-mathijs schoffelen jan.schoffelen at donders.ru.nl
Fri Jan 21 09:52:23 CET 2011

Dear Michael,

Please feel free to delete this particular line (and/or edit any other  
line) from the wiki. Declaring cfg empty before the conditional  
statements indeed does not makes sense.

Best wishes,


On Jan 20, 2011, at 10:52 AM, Michael Wibral wrote:

> Dear fieldtrip community,
> there seems to be a slight inconsistency in the tutorial section on  
> artifact removal (which I otherwise like a lot because it calrifies  
> a lot of the 'black-boxiness' of these particular fieldtrip  
> functions (thanks a lot).
> The part I am referring to is in the jump removal section.
> It starts with the lines:
> % jump
> cfg                    = [];
> if isfield(cfg, 'padding') && cfg.padding~=0
> padding = cfg.padding;
> else
> padding = 0;
> end
> I wonder whther these lines should go somewhere else as after  
> clearing cfg the code will alwazs end up in the second part if the  
> if condition, as there can be no 'padding' field.
> Didn't want to change this my self, as I might misunderstand  
> something.
> Michael
> <Michael Wibral.vcf><Michael  
> Wibral.vcf>_______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip

Dr. J.M. (Jan-Mathijs) Schoffelen
Donders Institute for Brain, Cognition and Behaviour,
Centre for Cognitive Neuroimaging,
Radboud University Nijmegen, The Netherlands
J.Schoffelen at donders.ru.nl
Telephone: 0031-24-3614793

More information about the fieldtrip mailing list