<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Dear Olga,<br>
<br>
indeed that there is a problem with the sensor definition. In
addition to specifying neighbours, the channelrepair function needs
to know the distance between channels. Therefore, you need to
provide a definition of the sensor position additionally. However,
the error message you get is not the one you should see - there
should be one that is more elaborate and intuitively understandable
;) Could you send me (outside the mailinglist) the whole error
message, including the lines where this goes wrong? I will then fix
the problem asap.<br>
<br>
Btw, the ft_fetch_sens function has recently been moved to the
FieldTrip/private folder, that means Matlab prevents you from seeing
or calling the function directly, but if you just cd to that
directory, you can access the file. Also, I just changed the error
message that you should have seen to be more elaborate (will be
available from tomorrow on).<br>
<br>
Best,<br>
Jörn<br>
<br>
<br>
<br>
<br>
On 2/2/2012 11:49 PM, Sysoeva, Olga Vladimirovna wrote:
<blockquote
cite="mid:76DC57362137854CB9592B496182D5FA09D909A83B@wusmexmbx2.medpriv.wucon.wustl.edu"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Dear group,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Am I doing something wrong or is it a bug?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I needed to do some bad channel
interpolation for my dataset (epoched data).<o:p></o:p></p>
<p class="MsoNormal">So I found out that there is a
ft_channel_repair function. And I tried to use it in the
following way.<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:12.0pt;font-family:"Courier
New";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:12.0pt;font-family:"Courier
New";color:black">cfg = [];</span><span
style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:12.0pt;font-family:"Courier
New";color:black">cfg.method =
</span><span style="font-size:12.0pt;font-family:"Courier
New";color:#A020F0">'distance'</span><span
style="font-size:12.0pt;font-family:"Courier
New";color:forestgreen">%, 'triangulation' or
'template' (default = 'distance')</span><span
style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:12.0pt;font-family:"Courier
New";color:black">cfg.neighbourdist = 4;
</span><span style="font-size:12.0pt;font-family:"Courier
New";color:forestgreen">% number, maximum distance
between neighbouring sensors (only for 'distance')</span><span
style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:12.0pt;font-family:"Courier
New";color:black">cfg.layout =
</span><span style="font-size:12.0pt;font-family:"Courier
New";color:#A020F0">'C:\Matlab_programs\Fieldtrip\My_Fieldtrip\EEG1010_modified32.lay'</span><span
style="font-size:12.0pt;font-family:"Courier
New";color:black">;</span><span
style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:12.0pt;font-family:"Courier
New";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:12.0pt;font-family:"Courier
New";color:black">[neighbours] =
ft_prepare_neighbours(cfg, data)</span><span
style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:12.0pt;font-family:"Courier
New";color:black"></span><span
style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:12.0pt;font-family:"Courier
New";color:black">cfg = [];</span><span
style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:12.0pt;font-family:"Courier
New";color:black"> cfg.badchannel = {</span><span
style="font-size:12.0pt;font-family:"Courier
New";color:#A020F0">'F4'</span><span
style="font-size:12.0pt;font-family:"Courier
New";color:black">};</span><span
style="font-size:12.0pt;font-family:"Courier
New";color:forestgreen">%cell-array, see
FT_CHANNELSELECTION for details</span><span
style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:12.0pt;font-family:"Courier
New";color:black"> cfg.neighbours = neighbours;</span><span
style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:12.0pt;font-family:"Courier
New";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:12.0pt;font-family:"Courier
New";color:black">[interp] = ft_channelrepair(cfg,
data)</span><span
style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div
style="mso-element:para-border-div;border:none;border-bottom:solid
windowtext 1.5pt;padding:0in 0in 1.0pt 0in">
<p class="MsoNormal" style="border:none;padding:0in">But I’m
getting the error ??? Reference to non-existent field 'pnt'.<o:p></o:p></p>
<p class="MsoNormal" style="border:none;padding:0in">It seems
to me that I’m not preparing the sensor(electrode) structure
correctly, but I couldn’t find mistake. I do follow the
tutorial. There are a link that I need to prepare the
electrode structure as in ft_fetch_sens function, but I my
version of Fieldtrip I do not have this function.<o:p></o:p></p>
<p class="MsoNormal" style="border:none;padding:0in"><o:p> </o:p></p>
<p class="MsoNormal" style="border:none;padding:0in">I’ll
appreciate any help,<o:p></o:p></p>
<p class="MsoNormal" style="border:none;padding:0in"><o:p> </o:p></p>
<p class="MsoNormal" style="border:none;padding:0in">Best
Regards,<o:p></o:p></p>
<p class="MsoNormal" style="border:none;padding:0in">Olga.<o:p></o:p></p>
<p class="MsoNormal" style="border:none;padding:0in"><o:p> </o:p></p>
</div>
<p class="MsoNormal">__________________________________________________________<o:p></o:p></p>
<p class="MsoNormal">Olga Sysoeva,<o:p></o:p></p>
<p class="MsoNormal">Research Associate, PhD<o:p></o:p></p>
<p class="MsoNormal">Psychiatry Department,<o:p></o:p></p>
<p class="MsoNormal">Washington University School of Medicine<o:p></o:p></p>
<p class="MsoNormal">Campus Box 8134<o:p></o:p></p>
<p class="MsoNormal">660 South Euclid Ave<o:p></o:p></p>
<p class="MsoNormal">Saint Louis, MO 63110-9909<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<hr>
<font color="Gray" face="Arial" size="1">The materials in this
message are private and may contain Protected Healthcare
Information or other information of a sensitive nature. If you
are not the intended recipient, be advised that any unauthorized
use, disclosure, copying or the taking of any action in reliance
on the contents of this information is strictly prohibited. If
you have received this email in error, please immediately notify
the sender via telephone or return mail.<br>
</font>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
fieldtrip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>
<a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group
P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands
Contact:
E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:jm.horschig@donders.ru.nl">jm.horschig@donders.ru.nl</a>
Tel: +31-(0)24-36-68493
Web: <a class="moz-txt-link-freetext" href="http://www.ru.nl/donders">http://www.ru.nl/donders</a>
Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands</pre>
</body>
</html>