<div dir="ltr">Dear fieldtriprs,<div><br></div><div>I still have problemns in aligning correctly the headmodel and the electrodes. Although now both have the correct size, the electrodes do not correctly fit the head.</div><div><br></div><div><u>This is my code:</u></div><div><div><span style="font-family:Courier">headmodel=ft_read_vol(</span><span style="font-family:Courier;color:rgb(178,69,243)">'standard_vol.mat'</span><span style="font-family:Courier">);</span><br></div><div><p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier;color:rgb(37,153,45);min-height:12px"> </p><p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier;color:rgb(37,153,45)">%then we realign them</p><p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier">cfg=[];</p><p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier">cfg.method= <span style="color:rgb(178,69,243)">'interactive'</span>;      <span style="color:rgb(37,153,45)">%'interactive'%</span></p><p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier">cfg.headshape=headmodel.bnd(1); <span style="color:rgb(37,153,45)">%the skin surface</span></p><p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier">elec_realigned =ft_electroderealign(cfg,data1.elec);</p><p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier"><br></p><p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier"><br></p><div><img src="cid:ii_jqyw1l2u0" alt="Captura de pantalla 2019-01-16 a las 8.51.49.png" width="312" height="229" class="gmail-CToWUd gmail-a6T" tabindex="0" style="cursor: pointer; outline: 0px; margin-right: 0px;"><br></div></div><div><br></div><div><u>These are the structures used:</u></div><div><br></div><div><div>data1.elec structure <br></div><div><div>    chanpos: [128×3 double]</div><div>    chantype: {128×1 cell}</div><div>    chanunit: {128×1 cell}</div><div>     elecpos: [128×3 double]</div><div>       label: {1×128 cell}</div><div>        type: 'biosemi128'</div><div>        unit: 'dm'</div></div></div><div><br></div><div>standard_vol structure</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 class="gmail-yj6qo"></div><br class="gmail-Apple-interchange-newline"></div><div>Thank you in advance,</div><div>Elene.</div></div>