<p dir="ltr">Dear Katrin, </p>
<p dir="ltr">Have you tried putting the labels of the channels you want interpolated into the cfg.badchannel array? </p>
<p dir="ltr">Best, <br>
Eelke </p>
<div class="gmail_quote">Op 13 aug. 2014 19:24 schreef "KatrinH Heimann" <<a href="mailto:katrinheimann@gmail.com">katrinheimann@gmail.com</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Dear all. I am trying to replace bad channels. <div>This is my code (very basic I think):%% Preparing neighbours for channel repair</div>
<p> </p>
<p>cfg_neighb = [];</p>
<p>cfg_neighb.feedback = <span>'yes'</span>;</p>
<p>cfg_neighb.method = <span>'triangulation'</span>;</p>
<p>cfg_neighb.layout = <span>'GSN-HydroCel-129.sfp'</span>;</p>
<p>neighbours = ft_prepare_neighbours(cfg_neighb, obs_data);</p>
<p> </p>
<p>% Interpolate and put into new data structure</p>
<p> cfg = []; </p>
<p> cfg.badchannel = {};</p>
<p> cfg.layout = <span>'GSN-HydroCel-129.sfp'</span>;</p>
<p> cfg.method = <span>'nearest'</span>;</p>
<p> cfg.neighbours = neighbours;</p>
<p> obs_data_channelrepaired = ft_channelrepair(cfg,obs_data)</p>
<p><br></p><div>I do not get any error but fieldtrip even tells me that the interpolation worked. However I do not see ANY trace of it in my data when inspecting it afterwards. I also tried to change the method (to average) - no change. Anybody who can help me with that?</div>
<div>Thanks a million</div><div>Katrin</div><div>
<p><br></p></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" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div>