<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} .ms-cui-menu {background-color:#ffffff;border:1px rgb(171, 171, 171) solid;font-family:'Segoe UI WPC', 'Segoe UI', Tahoma, 'Microsoft Sans Serif', Verdana, sans-serif;font-size:11pt;color:rgb(51, 51, 51);} .ms-cui-menusection-title {display:none;} .ms-cui-ctl {vertical-align:text-top;text-decoration:none;color:rgb(51, 51, 51);} .ms-cui-ctl-on {background-color:rgb(223, 237, 250);opacity: 0.8;} .ms-cui-img-cont-float {display:inline-block;margin-top:2px} .ms-cui-smenu-inner {padding-top:0px;} .ms-owa-paste-option-icon {margin: 2px 4px 0px 4px;vertical-align:sub;padding-bottom: 2px;display:inline-block;} .ms-rtePasteFlyout-option:hover {background-color:rgb(223, 237, 250) !important;opacity:1 !important;} .ms-rtePasteFlyout-option {padding:8px 4px 8px 4px;outline:none;} .ms-cui-menusection {float:left; width:85px;height:24px;overflow:hidden}
<!--
p
        {margin-top:0;
        margin-bottom:0}
.ms-cui-menu
        {background-color:#ffffff;
        border:1px rgb(171,171,171) solid;
        font-family:'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif;
        font-size:11pt;
        color:rgb(51,51,51)}
.ms-cui-menusection-title
        {}
.ms-cui-ctl
        {vertical-align:text-top;
        text-decoration:none;
        color:rgb(51,51,51)}
.ms-cui-ctl-on
        {background-color:rgb(223,237,250)}
.ms-cui-img-cont-float
        {display:inline-block;
        margin-top:2px}
.ms-cui-smenu-inner
        {padding-top:0px}
.ms-owa-paste-option-icon
        {margin:2px 4px 0px 4px;
        vertical-align:sub;
        padding-bottom:2px;
        display:inline-block}
.ms-rtePasteFlyout-option
        {padding:8px 4px 8px 4px;
        outline:none}
.ms-cui-menusection
        {float:left;
        width:85px;
        height:24px;
        overflow:hidden}
-->
--></style>
</head>
<body>
<div style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<style type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
.ms-cui-menu
        {background-color:#ffffff;
        border:1px rgb(171,171,171) solid;
        font-family:'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif;
        font-size:11pt;
        color:rgb(51,51,51)}
.ms-cui-menusection-title
        {}
.ms-cui-ctl
        {vertical-align:text-top;
        text-decoration:none;
        color:rgb(51,51,51)}
.ms-cui-ctl-on
        {background-color:rgb(223,237,250)}
.ms-cui-img-cont-float
        {display:inline-block;
        margin-top:2px}
.ms-cui-smenu-inner
        {padding-top:0px}
.ms-owa-paste-option-icon
        {margin:2px 4px 0px 4px;
        vertical-align:sub;
        padding-bottom:2px;
        display:inline-block}
.ms-rtePasteFlyout-option
        {padding:8px 4px 8px 4px;
        outline:none}
.ms-cui-menusection
        {float:left;
        width:85px;
        height:24px;
        overflow:hidden}
-->
</style>
<div style="font-size: 12pt; color: #000000; background-color: #ffffff; 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 tabindex="-1" style="display: inline-block; width: 98%;">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size: 11pt;"><b>From:</b> Makoto Miyakoshi <mmiyakoshi@ucsd.edu><br>
<b>Sent:</b> Friday, 24 January 2014 1:10 PM<br>
<b>To:</b> Tyler Grummett; Arnaud Delorme; Derrick<br>
<b>Cc:</b> eeglablist@sccn.ucsd.edu<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">
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>
</div>
</div>
</div>
</body>
</html>