[FieldTrip] error in the artifact rejection tutorial?
jan.schoffelen at donders.ru.nl
Fri Jan 21 09:52:23 CET 2011
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.
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;
> padding = 0;
> 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
> <Michael Wibral.vcf><Michael
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
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
More information about the fieldtrip