<div dir="ltr">Sorry Tyler for delayed response.<div>I noticed the one I was mentioning was NOT pop_autorej but 'reject with all methods'. It fails in the stage of rejection. There maybe a common error between the two cases though.</div>

<div><br></div><div>Arno, I think your comment is not describing the error correctly in my case. I used it on epoched data but still got an error message. </div><div><br></div><div>Makoto</div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">2014-02-05 15:24 GMT-08:00 Tyler Grummett <span dir="ltr"><<a href="mailto:tyler.grummett@flinders.edu.au" target="_blank">tyler.grummett@flinders.edu.au</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div>
<div style="font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif">

<div style="font-size:12pt;font-family:calibri,arial,helvetica,sans-serif">
<p>Dear Arnaud, Derrick and Makoto,<br>
</p>
<p><br>
</p>
<p>With regard to the pop_autorej error.<br>
</p>
<p><br>
</p>
<p>If it helps, I think the issue may be how elec (line 95) is being allocated space.<br>
</p>
<p>On line 90 ( sweeps = size(signal(1,:),2)/pnts), when it is handling spectra data, pnts = 202 (for me) and when it is handling EEG data, pnts = 20212 ( equal to size( signal( 1, :), 2)).<br>
</p>
<p><br>
</p>
<p>So maybe dividing by pnts on line 90 may not be the correct method when handling EEG data.<br>
</p>
<p><br>
</p>
<p>Hopefully that may help.<br>
</p>
<p><br>
</p>
<p>Kind regards,<br>
</p>
<p><br>
</p>
<p>Tyler.<br>
</p>
<div>
<p><br>
</p>
<div name="divtagdefaultwrapper" style="font-family:calibri,arial,helvetica,sans-serif;margin:0px">
<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 66124</i></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="color:#282828">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Makoto Miyakoshi <<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>><br>
<b>Sent:</b> Friday, 24 January 2014 1:10 PM<br>
<b>To:</b> Tyler Grummett; Arnaud Delorme; Derrick<br>
<b>Cc:</b> <a href="mailto:eeglablist@sccn.ucsd.edu" target="_blank">eeglablist@sccn.ucsd.edu</a><br>
<b>Subject:</b> Re: [Eeglablist] pop_autorej</font>
<div> </div>
</div>
<div>
<div dir="ltr">Dear Arno and Derrick,
<div><br>
</div>
<div>When I used 'reject channel epochs with all methods' yesterday from GUI it failed to reject the marked epochs. Most likely Tyler's report is the same thing. I think I've seen this for years (!)... Could you check it?</div>


<div><br>
</div>
<div>Makoto</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2014/1/22 Tyler Grummett <span dir="ltr"><<a href="mailto:tyler.grummett@flinders.edu.au" target="_blank">tyler.grummett@flinders.edu.au</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:#cccccc;border-left-style:solid;padding-left:1ex">
<div dir="ltr">
<div name="divtagdefaultwrapper" style="font-size:12pt;margin:0px;font-family:calibri,arial,helvetica,sans-serif">
<p>To all on the eeglab mailing list,</p>
<p><br>
</p>
<p>I am having an issue with the pop_autorej function where it crashes with the following error message:</p>
<p><br>
</p>
<p></p>
<p>Subscripted assignment dimension mismatch.</p>
<p><br>
</p>
<p>Error in eegthresh (line 108)</p>
<p><span style="white-space:pre-wrap"></span>elec(indexe,:) = ( sigmin < negthresh(indexe) ) | ( sigmax > posthresh(indexe) );</p>
<p><br>
</p>
<p>Error in pop_eegthresh (line 154)</p>
<p><span style="white-space:pre-wrap"></span>[Itmp Irej NS Erejtmp] = eegthresh( EEG.data, EEG.pnts, elecrange, negthresh, posthresh, [EEG.xmin</p>
<p>    EEG.xmax], starttime, endtime);</p>
<p><br>
</p>
<p>Error in pop_autorej (line 138)</p>
<p>    EEG =</p>
<p>    pop_eegthresh(EEG,1,[1:size(EEG.data,1)],-opt.threshold,opt.threshold,EEG.xmin,EEG.xmax,0,0);</p>
<p><br>
</p>
<p>I tried the pop_rejcont function (which also uses the eegthresh function) and it ran smoothly. However,</p>
<p>as my supervisor pointed out, this uses spectra data. Does anyone know how to get this function to</p>
<p>operate correctly?</p>
<p><br>
</p>
<p>Kind regards,</p>
<p><br>
</p>
<p>Tyler.</p>
<p></p>
<div>
<p><br>
</p>
<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 66124</i></font></div>
</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" target="_blank">
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" target="_blank">
eeglablist-request@sccn.ucsd.edu</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
<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>
</font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>

</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>