<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 just wanted to report a potential bug, I dont know whether it is a bug or if I am using it incorrectly.<br>
</p>
<p style=""><br>
</p>
<p style="">On line 323 to 329 of ft_sensorrealign is the following code:<br>
</p>
<p style=""><br>
</p>
<div style="">    ft_plot_sens(elec, 'r*');</div>
<div>    </div>
<div>    % plot all electrodes after warping</div>
<div style="">    ft_plot_sens(norm, 'm.', 'label', 'label');</div>
<div>    </div>
<div>    % plot the template electrode locations</div>
<div style="">    ft_plot_sens(average, 'b.');<br>
</div>
<div style=""><br>
</div>
<div style="">It throws the error:<br>
</div>
<div style=""><br>
</div>
<div style="">
<div style=""><span style="color: rgb(255, 0, 0);">Error using ft_getopt</span></div>
<div><span style="color: rgb(255, 0, 0);">the first input should contain key-value pairs</span></div>
<div><br style="color: rgb(255, 0, 0);">
</div>
<div><span style="color: rgb(255, 0, 0);">Error in ft_plot_sens (line 47)</span></div>
<div style=""><span style="color: rgb(255, 0, 0);">style         = ft_getopt(varargin, 'style',  'k.');</span><br>
</div>
<br>
</div>
<p style="">I think it should be:<br>
</p>
<p style=""><br>
</p>
<div style="">    ​ft_plot_sens(elec, 'style', 'r*');</div>
<div>    </div>
<div>    % plot all electrodes after warping</div>
<div>    ft_plot_sens(norm, 'style', 'm.', 'label', 'label');</div>
<div>    </div>
<div>    % plot the template electrode locations</div>
<div style="">    ft_plot_sens(average, 'style', 'b.');<br>
</div>
<div style=""><br>
</div>
<div style="">Hopefully this helps,<br>
</div>
<div style=""><br>
</div>
<div style="">Kind regards,<br>
</div>
<div style=""><br>
</div>
<div style="">Tyler<br>
</div>
<p style=""><br>
</p>
<div>
<p><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>