<div dir="ltr"><div class="gmail_default" style="font-size:large"><span style="font-size:12.8px">Dear FieldTrip community</span><br clear="all"></div><div class="gmail_default" style="font-size:large"><span style="font-size:12.8px"><br></span></div><div class="gmail_default"><div class="gmail_default" style="font-size:12.8px">I'm using the forward model to simulating EEG signal although it seems the dimension of the lead-field matrix is not correct. Here is a review of the procedure.</div><div class="gmail_default" style="font-size:12.8px"><br></div><div class="gmail_default" style="font-size:12.8px">First I constructed a BEM headmodel for EEG source analysis and then by loading the template cortex, I put the dipoles with specific current source on that. I expect the dimension of the lead-field matrix will be m*n which m=electrode's number and n=3*dipole's number but 'm' is different. </div><div class="gmail_default" style="font-size:12.8px">Since I used the template electrode 'standard_1020.elc', m = 97 according to:</div><div class="gmail_default" style="font-size:12.8px"> <br></div><div class="gmail_default" style="font-size:12.8px"><div class="gmail_default" style="font-size:12.8px"> chanpos: [97x3 double]</div><div class="gmail_default" style="font-size:12.8px"> chantype: {97x1 cell}</div><div class="gmail_default" style="font-size:12.8px"> chanunit: {97x1 cell}</div><div class="gmail_default" style="font-size:12.8px"> elecpos: [97x3 double]</div><div class="gmail_default" style="font-size:12.8px"> label: {97x1 cell}</div><div class="gmail_default" style="font-size:12.8px"> type: 'eeg1010'</div><div class="gmail_default" style="font-size:12.8px"> unit: 'mm'</div><div><br></div></div><div>while the dimension of lead-field matrix is:
2000x122880 </div><div>
<p class="gmail-p1">I use this function for calculating lead-field matrix:</p><p class="gmail-p1">LF = ft_compute_leadfield(DipPos, elec, VolBEM);</p></div></div><div><div class="gmail_default">I do not understand why the number of raws are different!</div><div class="gmail_default"><br></div><div class="gmail_default">On the other hand I guess that there is a similarity between the number of raws in the volume head model and LF matrix due to the dimension of headmodel matrix is: 2000x8000 double .</div><br></div><div><div class="gmail_default">I will be so thankful if anyone can help me.</div><br></div>-- <br><div class="gmail-m_7370803151998605674gmail_signature"><div dir="ltr">Bests<div><br></div><div>Pouneh Baniasad</div></div></div>
</div>