<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div><span>Hi Fieldtrippers,</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>I read many answers about problems on channel repair, but still something miss me to understand hot to fix a channel. I tried with:</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style:
normal;"><span>cfg = [];<br>replace_channels = ft_channelselection('gui',hdr.label);<br>cfg.badchannel = replace_channels;<br>cfg.layout = 'EEG_layout.lay';<br>cfg.method = 'triangulation';<br>cfg.elecfile = 'EEG_cap.sfp';<br>cfg.neighbours = neighbours;<br>cfg.trials = 'all';<br>elec.label = hdr.label;<br>data.elec = ft_prepare_layout(cfg);<br>repaired_data = ft_channelrepair(cfg,rawdataout);<br></span></div><div> <br>but it returns:<br>??? Error using ==> ft_channelrepair at 92<br>the data
should contain either an electrode or a gradiometer definition<br><br>I cannot find into documentation what it means.<br>I guess I have to specify the kind of measurement (EEG/MEG), but where?<br>Furthermore I read the docs about electrode position , channel position and so on, but can we get some example?<br><br>Thanks a lot,<br><br>Ivano<br></div><div>------------------------------------------------------------------------</div><div><br><br><br><br></div><div>"No man can wear one face to himself <br>and another to the multitude,<br>without finally getting bewildered <br>as to which one is true."</div><br><br><div>Nathaniel Hawthorne</div></div></body></html>