<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr">
<div id="OWAFontStyleDivID" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p style="">Hello fieldtrip,<br>
</p>
<p style=""><br>
</p>
<p style="">I dont know if this is a bug or not, but I am trying to use the electrode positions from a template file in<br>
</p>
<p style="">fieldtrip using the following code:</p>
<p style=""><br>
</p>
<p style="">cfg = [];<br>
</p>
<p style="">cfg.method = 'template';<br>
</p>
<p style="">cfg.target = 'fieldtrip\template\electrode\standard_1005.elec'<br>
</p>
<p style="">ft_sensorrealign( cfg, data.elec)<br>
</p>
<p style=""><br>
</p>
<p style=""> and I get the following error:<br>
</p>
<p style=""><br>
</p>
<div style=""><span style="color: rgb(255, 0, 0);">Reference to non-existent field 'pnt'.</span></div>
<div><br style="color: rgb(255, 0, 0);">
</div>
<div><span style="color: rgb(255, 0, 0);">Error in ft_sensorrealign (line 306)</span></div>
<div style=""><span style="color: rgb(255, 0, 0);">    template(i).pnt   = template(i).pnt(datsel,:);</span><br>
</div>
<p style=""><br>
</p>
<div>
<p style="">Am I using this wrong?<br>
</p>
<p style=""><br>
</p>
<p style="">Tyler<br>
</p>
<p style=""><br>
</p>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-size:13px">*************************
<div style="font-family:Tahoma"><br>
</div>
<div><font face="Arial"><i>Tyler Grummett ( BBSc, BSc(Hons I))</i></font></div>
<div><font face="Arial"><i>PhD Candidate</i></font></div>
<div><font face="Arial"><i>Brain Signals Laboratory</i></font></div>
<div><font face="Arial"><i>Flinders University</i></font></div>
<div><font face="Arial"><i>Rm 5A301</i></font></div>
<div><font face="Arial"><i>Ext 66124</i></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>