<div dir="ltr">Dear Ramon,<div><br></div><div>I tend to believe him. Looks like this is the consistency problem in the channel numbers before and after some channel removel. Could you take a look at it?</div><div><br></div><div>Makoto<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 16, 2014 at 4:52 PM, Tyler Grummett <span dir="ltr"><<a href="mailto:tyler.grummett@flinders.edu.au" target="_blank">tyler.grummett@flinders.edu.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hello eeglabers,<br>
</p>
<p><br>
</p>
<p>I was looking for an automatic eye blink removal function and I stumbled across pop_regica. However I also stumbled across a bug, but as usual Im not 100% sure its a bug.<br>
</p>
<p><br>
</p>
<p>When I run the function from the GUI, I get the following error:<br>
</p>
<p><br>
</p>
<div><span style="color:rgb(255,0,0)">Index exceeds matrix dimensions.</span></div>
<div><br style="color:rgb(255,0,0)">
</div>
<div><span style="color:rgb(255,0,0)">Error in pop_regica (line 448)</span></div>
<div><span style="color:rgb(255,0,0)">tmpdata = reshape( EEG.data(g.chanind,:,:), length(g.chanind), EEG.pnts*EEG.trials);</span><span style="color:rgb(255,0,0)"></span><br>
</div>
<p><br>
</p>
<p>It appears that g.chanind contains the indexes of the EEG channels after EOG channels have been removed from it. This means that EEG.data has (number of EOG channels)<br>
</p>
<p>less channels and indexing into it produces that error.<br>
</p>
<p><br>
</p>
<p>I took out (g.chanind, :, :) and it worked fine:<br>
</p>
<p><br>
</p>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
<span style="color:rgb(255,0,0)">tmpdata = reshape( EEG.data, length(g.chanind), EEG.pnts*EEG.trials);</span><span style="color:rgb(255,0,0)"></span><br>
</div>
<div><span style="color:rgb(255,0,0)"><br>
<span style="color:rgb(0,0,0)">Is this a bug and the fix for the bug? Or am I doing something wrong?</span></span></div>
<div><span style="color:rgb(255,0,0)"><span style="color:rgb(0,0,0)"><br>
</span></span></div>
<div><span style="color:rgb(255,0,0)"><span style="color:rgb(0,0,0)">Tyler</span></span></div>
<p><br>
</p>
<p><br>
</p>
<div>
<div name="divtagdefaultwrapper">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-size:13px">*************************
<div style="font-family:Tahoma"><br>
</div>
<div><font face="Arial"><i>Tyler Grummett ( BBSc, BSc(Hons I))</i></font></div>
<div><font face="Arial"><i>PhD Candidate</i></font></div>
<div><font face="Arial"><i>Brain Signals Laboratory</i></font></div>
<div><font face="Arial"><i>Flinders University</i></font></div>
<div><font face="Arial"><i>Rm 5A301</i></font></div>
<div><font face="Arial"><i>Ext 66125</i></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.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">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><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></div>