<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"><base href="x-msg://3597/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Yes, this function only works for data epochs. I think this might be the issue.<div>It is greyed out in case you have continuous data. We will update the function header to make it clearer.</div><div>Thanks,</div><div><br></div><div>Arno</div><div><br><div><div>On Feb 5, 2014, at 3:24 PM, Tyler Grummett <<a href="mailto:tyler.grummett@flinders.edu.au">tyler.grummett@flinders.edu.au</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif; "><div style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: calibri, arial, helvetica, sans-serif; "><div style="margin-top: 0px; margin-bottom: 0px; ">​Dear Arnaud, Derrick and Makoto,<br></div><div style="margin-top: 0px; margin-bottom: 0px; "><br></div><div style="margin-top: 0px; margin-bottom: 0px; ">With regard to the pop_autorej error.<br></div><div style="margin-top: 0px; margin-bottom: 0px; "><br></div><div style="margin-top: 0px; margin-bottom: 0px; ">If it helps, I think the issue may be how elec (line 95) is being allocated space.<br></div><div style="margin-top: 0px; margin-bottom: 0px; ">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></div><div style="margin-top: 0px; margin-bottom: 0px; "><br></div><div style="margin-top: 0px; margin-bottom: 0px; ">So maybe dividing by pnts on line 90 may not be the correct method when handling EEG data.<br></div><div style="margin-top: 0px; margin-bottom: 0px; "><br></div><div style="margin-top: 0px; margin-bottom: 0px; ">Hopefully that may help.<br></div><div style="margin-top: 0px; margin-bottom: 0px; "><br></div><div style="margin-top: 0px; margin-bottom: 0px; ">Kind regards,<br></div><div style="margin-top: 0px; margin-bottom: 0px; "><br></div><div style="margin-top: 0px; margin-bottom: 0px; ">Tyler.<br></div><div><div style="margin-top: 0px; margin-bottom: 0px; "><br></div><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: rgb(40, 40, 40); "><hr tabindex="-1" style="display: inline-block; width: 796px; "><div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size: 11pt; "><b>From:</b><span class="Apple-converted-space"> </span>Makoto Miyakoshi <<a href="mailto:mmiyakoshi@ucsd.edu">mmiyakoshi@ucsd.edu</a>><br><b>Sent:</b><span class="Apple-converted-space"> </span>Friday, 24 January 2014 1:10 PM<br><b>To:</b><span class="Apple-converted-space"> </span>Tyler Grummett; Arnaud Delorme; Derrick<br><b>Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:eeglablist@sccn.ucsd.edu">eeglablist@sccn.ucsd.edu</a><br><b>Subject:</b><span class="Apple-converted-space"> </span>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 class="Apple-converted-space"> </span><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: rgb(204, 204, 204); 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; "><div style="margin-top: 0px; margin-bottom: 0px; ">To all on the eeglab mailing list,</div><div style="margin-top: 0px; margin-bottom: 0px; "><br></div><div style="margin-top: 0px; margin-bottom: 0px; ">I am having an issue with the pop_autorej function where it crashes with the following error message:</div><div style="margin-top: 0px; margin-bottom: 0px; "><br></div><p style="margin-top: 0px; margin-bottom: 0px; "></p><div style="margin-top: 0px; margin-bottom: 0px; ">Subscripted assignment dimension mismatch.</div><div style="margin-top: 0px; margin-bottom: 0px; "><br></div><div style="margin-top: 0px; margin-bottom: 0px; ">Error in eegthresh (line 108)</div><div style="margin-top: 0px; margin-bottom: 0px; "><span style="white-space: pre-wrap; "></span>elec(indexe,:) = ( sigmin < negthresh(indexe) ) | ( sigmax > posthresh(indexe) );</div><div style="margin-top: 0px; margin-bottom: 0px; "><br></div><div style="margin-top: 0px; margin-bottom: 0px; ">Error in pop_eegthresh (line 154)</div><div style="margin-top: 0px; margin-bottom: 0px; "><span style="white-space: pre-wrap; "></span>[Itmp Irej NS Erejtmp] = eegthresh( EEG.data, EEG.pnts, elecrange, negthresh, posthresh, [EEG.xmin</div><div style="margin-top: 0px; margin-bottom: 0px; ">    EEG.xmax], starttime, endtime);</div><div style="margin-top: 0px; margin-bottom: 0px; "><br></div><div style="margin-top: 0px; margin-bottom: 0px; ">Error in pop_autorej (line 138)</div><div style="margin-top: 0px; margin-bottom: 0px; ">    EEG =</div><div style="margin-top: 0px; margin-bottom: 0px; ">    pop_eegthresh(EEG,1,[1:size(EEG.data,1)],-opt.threshold,opt.threshold,EEG.xmin,EEG.xmax,0,0);</div><div style="margin-top: 0px; margin-bottom: 0px; "><br></div><div style="margin-top: 0px; margin-bottom: 0px; ">I tried the pop_rejcont function (which also uses the eegthresh function) and it ran smoothly. However,</div><div style="margin-top: 0px; margin-bottom: 0px; ">as my supervisor pointed out, this uses spectra data. Does anyone know how to get this function to</div><div style="margin-top: 0px; margin-bottom: 0px; ">operate correctly?</div><div style="margin-top: 0px; margin-bottom: 0px; "><br></div><div style="margin-top: 0px; margin-bottom: 0px; ">Kind regards,</div><div style="margin-top: 0px; margin-bottom: 0px; "><br></div><div style="margin-top: 0px; margin-bottom: 0px; ">Tyler.</div><p style="margin-top: 0px; margin-bottom: 0px; "></p><div><div style="margin-top: 0px; margin-bottom: 0px; "><br></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 66124</i></font></div></div></div></div></div></div></div></div></div><br>_______________________________________________<br>Eeglablist page:<span class="Apple-converted-space"> </span><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<span class="Apple-converted-space"> </span><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<span class="Apple-converted-space"> </span><a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br><br clear="all"><div><br></div>--<span class="Apple-converted-space"> </span><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></div></div></div></div></blockquote></div><br></div></body></html>