<div dir="ltr">Dear Julia,<div><br></div><div>From the FAQ section:</div><div><br></div><div><a href="http://www.fieldtriptoolbox.org/faq/how_does_the_filter_padding_in_preprocessing_work">http://www.fieldtriptoolbox.org/faq/how_does_the_filter_padding_in_preprocessing_work</a><br></div><div><a href="http://www.fieldtriptoolbox.org/faq/how_can_i_interpret_the_different_types_of_padding_that_i_find_when_dealing_with_artifacts">http://www.fieldtriptoolbox.org/faq/how_can_i_interpret_the_different_types_of_padding_that_i_find_when_dealing_with_artifacts</a><br></div><div><br></div><div>I hope that helps,</div><div><br></div><div>Diego</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 2 May 2016 at 15:08, Brehm, J. (Julia) <span dir="ltr"><<a href="mailto:j.brehm@uu.nl" target="_blank">j.brehm@uu.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Dear list,
<div><br>
</div>
<div>I am having problems applying filterpadding when using ft_artifact_zvalue. </div>
<div><br>
</div>
<div>Could someone please explain what exactly the effect of filterpadding is, and in which cases I can apply it and in which not?</div>
<div><br>
</div>
<div>I intended to use it to avoid edge effects in the artifact detection. However, I get the following warning (only when applying fltpadding, my data does not actually contain NaNs):</div>
<div><br>
</div>
<div>
<div>Warning: data contains NaNs, no filtering or preprocessing applied </div>
<div>> In ft_warning (line 181)</div>
<div>  In preproc (line 282)</div>
<div>  In ft_artifact_zvalue (line 292)</div>
</div>
<div><br>
</div>
<div>These are my settings:</div>
<div>
<div>
<div>cfg            = [];</div>
<div>cfg.trl        = temptrl; % all trials</div>
</div>
<div><br>
</div>
<div>cfg.artfctdef.zvalue.channel     = channel{ch};  % single channel</div>
<div>cfg.artfctdef.zvalue.cutoff      = 3;</div>
<div>cfg.artfctdef.zvalue.fltpadding  = 0.1;</div>
<div>                    </div>
<div>cfg.artfctdef.zvalue.bpfilter   = 'yes';</div>
<div>cfg.artfctdef.zvalue.bpfilttype = 'but';</div>
<div>cfg.artfctdef.zvalue.bpfreq     = [1 3];</div>
<div>cfg.artfctdef.zvalue.bpfiltord  = 2;</div>
<div>cfg.artfctdef.zvalue.hilbert    = 'yes';</div>
</div>
<div><br>
</div>
<div>Thanks!</div>
<div><br>
</div>
<div>Best,</div>
<div>Julia</div>
</div>
</div>

<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>