<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" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Dear Elene,<br>
</p>
<p><br>
</p>
<p>Looking at the structure of  "electrodes", I see that there is no information about the units. Do you know in which unit this electrodes are expressed? How did you generate this structure? If I see correctly in the code ft_plot_sens assumes "mm" if no unit
 is specified. This means your electrode structure is not expressed in mm.<br>
</p>
<p><br>
</p>
<p> As the unit information is missing, <span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);"> </span><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);">ft_convert_units
 will not work on your electrodes.</span> So you should add this information to  the structure, and then you would be able to use <span style="color: rgb(33, 33, 33); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">ft_convert_units.</span><br>
</p>
<p><span style="color: rgb(33, 33, 33); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);"><br>
</span></p>
<p><span style="color: rgb(33, 33, 33); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">Hope this resolves your issue! </span><span style="color: rgb(33, 33, 33); font-size: 12pt;">Cheers</span></p>
<p><br>
</p>
<div id="Signature">
<div style="font-family:Tahoma; font-size:13px"><font color="black" face="Tahoma" size="2"><span dir="ltr" style="font-size:10pt">
<div><font size="1"><span style="font-size:13px">
<div>Simon Homölle<br>
</div>
<div>PhD Candidate</div>
<div>Donders Institute for Brain, Cognition and Behaviour</div>
<div>Centre for Cognitive Neuroimaging</div>
<div>Radboud University Nijmegen</div>
<div>Phone: +31-(0)24-36-65059</div>
</span></font></div>
</span></font></div>
</div>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> fieldtrip <fieldtrip-bounces@science.ru.nl> on behalf of Elene Beitia Loinaz <elene.beitia@alumni.mondragon.edu><br>
<b>Sent:</b> Monday, January 14, 2019 10:52 AM<br>
<b>To:</b> FieldTrip discussion list<br>
<b>Subject:</b> [FieldTrip] Source reconstructions</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>Dear fieldtripers,</div>
<div><br>
</div>
<div>I am tryng to visualize the electrodes and the headmodel at the same time. The problem that I have is that I need to reescale one of them.</div>
<div><br>
</div>
<div>I have tried to function ft_convert_units, but I just obtain the image attached. </div>
<div><br>
</div>
<div>The structure of the information are the next ones,</div>
<div><u>headmodel:</u></div>
<div>
<div>     bnd: [1×3 struct]</div>
<div>     cond: [0.3300 0.0041 0.3300]</div>
<div>     mat: [3000×3000 double]</div>
<div>     type: 'dipoli'</div>
<div>     unit: 'mm'</div>
</div>
<div><u>electrodes:</u></div>
<div>
<div>      pnt: [133×3 double]</div>
<div>      label: {1×133 cell}</div>
</div>
<div><br>
</div>
<div>Code that I have used to obtained the image below:</div>
<div>
<div>ft_determine_coordsys (vol, 'interactive','no')</div>
<div><br>
</div>
<div><br>
</div>
<div>figure;</div>
<div>sens=data.elec;</div>
<div>sens=ft_convert_units(sens, 'cm');</div>
<div>ft_plot_vol(vol,'facecolor','skin','edgecolor','none')</div>
<div>ft_plot_sens(sens,'elecsize',10)</div>
<div>camlight</div>
<div>alpha 0.5 </div>
</div>
<div><br>
</div>
<div>If somebody could help my I would be very grateful,</div>
<div><br>
</div>
<div>Elene</div>
<div><br>
</div>
<div><br>
</div>
<div><img alt="image.png" width="451" height="361" src="cid:ii_jqw57hdz0"><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>