<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 37px; text-indent: -37px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>From: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">jan-mathijs schoffelen <<a href="mailto:jan@psy.gla.ac.uk">jan@psy.gla.ac.uk</a>></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 34px; text-indent: -34px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Date: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">December 29, 2008 9:22:40 AM BST</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 21px; text-indent: -21px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>To: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">FieldTrip discussion list <<a href="mailto:FIELDTRIP@NIC.SURFNET.NL">FIELDTRIP@NIC.SURFNET.NL</a>></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 50px; text-indent: -50px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Subject: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><b>Re: [FIELDTRIP] Problem with DipoleSimulation</b></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> Dear Luis,<div><br></div><div>The trick is to define the moment-matrix as 6-by-2, i.e. nx3-by-n. It should look like this:</div><div><br></div><div>[Mx 0</div><div>My 0</div><div>Mz 0</div><div>0 Mx2</div><div>0 My2</div><div>0 Mz2]</div><div><br></div><div>In this case the matrix-multiplication should work out fine. </div><div><br></div><div>Best,</div><div><br></div><div>Jan-Mathijs</div><div><br></div><div><br><div><div>On Dec 27, 2008, at 12:35 PM, Luis Morán wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Dear collegues!<div><br></div><div>I'm new on fieldtrip so I'd be very pleased if someone could help me.<br><div><br></div><div>I have a problem while using dipolesimulation. I'm trying to make a simulation with 2 dipoles. I introduce the position as a 2-by-3 matrix, and the moment as a 3-by-2.</div> <div><br></div><div>My problem comes when the leadfield is calculated. lf is m-by-n matrix where m is the number of channels and n is 2*number of dipoles. Then, in the script this lf is multiplied by dipmom (a 3-by-Ndipoles matrix) and by dippos (a N-dipoles -by- 3). So this operation only works when we have only one dipole.</div> <div><br></div><div>Thanks in advance<br clear="all"><br>-- <br>Luis Morán Rodríguez<br><br>Altentic<br><br><a href="mailto:lmoran@altentic.com">lmoran@altentic.com</a><br> </div></div><p>----------------------------------</p><p>The aim of this list is to facilitate the discussion between users of the FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p><p> <a href="http://listserv.surfnet.nl/archives/fieldtrip.html">http://listserv.surfnet.nl/archives/fieldtrip.html</a></p><p> <a href="http://www.ru.nl/fcdonders/fieldtrip/">http://www.ru.nl/fcdonders/fieldtrip/</a></p> </blockquote></div><br></div><p>----------------------------------</p><p>The aim of this list is to facilitate the discussion between users of the FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p><p> <a href="http://listserv.surfnet.nl/archives/fieldtrip.html">http://listserv.surfnet.nl/archives/fieldtrip.html</a></p><p> <a href="http://www.ru.nl/fcdonders/fieldtrip/">http://www.ru.nl/fcdonders/fieldtrip/</a></p> </blockquote></div><br></body></html><p>----------------------------------</p>
<p>The aim of this list is to facilitate the discussion between users of the FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p>
<p> http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p> http://www.ru.nl/fcdonders/fieldtrip/</p>