<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" id="owaParaStyle" style="display: none;"><!--P {margin-top:0;margin-bottom:0;}--></style>
</head>
<body dir="ltr" fpstyle="1" aria-label="Message body" tabindex="0" style="">
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt; color: #000000; margin: 0">
<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 class="Apple-tab-span" style="white-space:pre"></span>elec(indexe,:) = ( sigmin < negthresh(indexe) ) | ( sigmax > posthresh(indexe) );</p>
<p><br>
</p>
<p>Error in pop_eegthresh (line 154)</p>
<p><span class="Apple-tab-span" style="white-space:pre"></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" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<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>
</body>
</html>