<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><style>
<!--
/* Font Definitions */
@font-face
{font-family:Cambria;
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:0;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 0 0 0 1 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Cambria;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<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 style="mso-spacerun: yes">
</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 style="mso-spacerun: yes">
</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 style="mso-spacerun: yes"> </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 style="mso-spacerun:
yes"> </span>dip(i) = beamformer_sam(grid, sens, vol, squeeze(avg(i,:,:)),</p>
<div style="mso-element:para-border-div;border:none;border-bottom:dotted windowtext 3.0pt;
padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal" style="border:none;mso-border-bottom-alt:dotted windowtext 3.0pt;
padding:0cm;mso-padding-alt:0cm 0cm 1.0pt 0cm">
<span style="mso-spacerun:
yes"> </span>squeeze(Cy(i,:,:)), optarg{:});</p>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
</div>
</body>
</html>