<div dir="ltr">Dear Evyatar,<div><br></div><div>Sorry, you are right. inv() I mean is pinv(). My bad.</div><div><br></div><div>Makoto</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 1, 2017 at 5:47 AM, <a href="mailto:Evyatar.Arad@sheba.health.gov.il">Evyatar.Arad@sheba.health.gov.il</a> <span dir="ltr"><<a href="mailto:Evyatar.Arad@sheba.health.gov.il" target="_blank">Evyatar.Arad@sheba.health.gov.il</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div class="m_7499375122244389860WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Dear Makoto,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Managed to get around the matrix dimension error by using Moore-Penrose pseudoinverse to compute the weight inverse matrix 'icawinv'.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Thanks again, I'll definitely stick around this list.<u></u><u></u></span></p><span class="">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Evyatar<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Makoto Miyakoshi [mailto:<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>]
<br>
<b>Sent:</b> </span><span lang="HE" dir="RTL" style="font-size:11.0pt">יום ו 13 ינואר 2017 06:38</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><br>
<b>To:</b> </span><span lang="HE" dir="RTL" style="font-size:11.0pt">ערד אביתר</span><span dir="LTR"></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><span dir="LTR"></span> <<a href="mailto:Evyatar.Arad@sheba.health.gov.il" target="_blank">Evyatar.Arad@sheba.health.<wbr>gov.il</a>><br>
<b>Cc:</b> <a href="mailto:eeglablist@sccn.ucsd.edu" target="_blank">eeglablist@sccn.ucsd.edu</a><br>
<b>Subject:</b> Re: [Eeglablist] Processing ICA component activation prior to unmixing<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</span><div>
<p class="MsoNormal">Dear Evyatar,<u></u><u></u></p><div><div class="h5">
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">You can hack EEGLAB by saying EEG = NewEEG. But if you do this, beware that EEGLAB always runs a consistency check function, namely eeg_checkset(), so your modified data should be compatible with their check criteria.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">By the way, in the eeg_checkset() you can find the line that does the same thing. You may want to check it out just to make sure. I think your code is correct, but I got always confused with the order of this matrix multiplications.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">NewEEG = inv(EEG.icasphere * EEG.icaweights)*EEG.ICAact<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Makoto<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Mon, Dec 26, 2016 at 12:02 AM, <a href="mailto:Evyatar.Arad@sheba.health.gov.il" target="_blank">
Evyatar.Arad@sheba.health.gov.<wbr>il</a> <<a href="mailto:Evyatar.Arad@sheba.health.gov.il" target="_blank">Evyatar.Arad@sheba.health.<wbr>gov.il</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal">Dear list,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I would like to process some of the ICA activations and then use the modified activations for the channel reconstruction. I suppose
<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">NewEEG = inv(EEG.icasphere * EEG.icaweights)*EEG.ICAact
<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">could be used, but I want the reconstructed dataset to be fully integrated into the EEGlab GUI. I've searched the list archives and haven’t found anything, so help would be much
 appreciated.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Thanks and good week<span style="color:#1f497d">.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif">Evyatar Arad<br>
R&D Engineer<br>
Centre of Advanced Technologies in Rehabilitation<br>
Sheba Medical Centre</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><br>
______________________________<wbr>_________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">
http://sccn.ucsd.edu/eeglab/<wbr>eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">
eeglablist-unsubscribe@sccn.<wbr>ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">
eeglablist-request@sccn.ucsd.<wbr>edu</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Makoto Miyakoshi<br>
Swartz Center for Computational Neuroscience<br>
Institute for Neural Computation, University of California San Diego<u></u><u></u></p>
</div>
</div>
</div>
</div></div></div>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</div>