<div dir="ltr"><div>Hi Elene,</div><div><br></div><div>After 'interactive' mode to give it a good start, I use the output for another iteration of automatic 'headshape' method for a tight fit.</div><div><br></div><div>Hope this helps,</div><div>Stephen<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, 16 Jan 2019 at 09:31, Elene Beitia Loinaz <<a href="mailto:elene.beitia@alumni.mondragon.edu">elene.beitia@alumni.mondragon.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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" class="gmail-m_5871194535572938283gmail-CToWUd gmail-m_5871194535572938283gmail-a6T" style="outline: currentcolor none 0px; margin-right: 0px;" width="312" height="229"><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-m_5871194535572938283gmail-yj6qo"></div><br class="gmail-m_5871194535572938283gmail-Apple-interchange-newline"></div><div>Thank you in advance,</div><div>Elene.</div></div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>