<div dir="ltr"><div>Dear Elena</div>I used it recently with MEG data and local spheres model<div>I don't think it could work with eeg but I don't know.</div><div>Yuval<br><br><div class="gmail_quote">On 4 May 2012 09:50, Elena Orekhova <span dir="ltr"><<a href="mailto:Elena.Orekhova@neuro.gu.se" target="_blank">Elena.Orekhova@neuro.gu.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">
<p class="MsoNormal">Dear fieldtrippers!</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I tried to use SAM beamformer for the EEG analysis,</p>
<p class="MsoNormal">But I have got en error (see below).<span>
</span></p>
<p class="MsoNormal">I guess that there is a bug in ‘beamformer_sam’at line 112.
</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I wonder if ‘SAM’ option works at all?<span>
</span>Did anybody used ‘SAM’ in ‘ft_sourceanalysis’?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks, </p>
<p class="MsoNormal">Elena</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">***********************</p>
<p class="MsoNormal">Error using<span> </span>* </p>
<p class="MsoNormal">Inner matrix dimensions must agree.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Error in beamformer_sam (line 112)</p>
<p class="MsoNormal">inv_cov = pinv(all_cov + lambda * eye(size(all_cov)));</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Error in ft_sourceanalysis (line 849)</p>
<p class="MsoNormal"><span> </span>dip(i) = beamformer_sam(grid, sens, vol, squeeze(avg(i,:,:)),</p>
<div style="border:none;border-bottom:dotted windowtext 3.0pt;padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal" style="border:none;padding:0cm">
<span> </span>squeeze(Cy(i,:,:)), optarg{:});</p>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
</div>
</div>
<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">
<br>Y.Harpaz<br><br>a link to the BIU MEG lab:<br><a href="http://faculty.biu.ac.il/%7Egoldsa/index.html" target="_blank">http://faculty.biu.ac.il/~goldsa/index.html</a></div><br>
</div></div>