Thanks Makoto! This works perfect.<br><br><div class="gmail_quote">On Thu, Mar 7, 2013 at 12:39 PM, Makoto Miyakoshi <span dir="ltr"><<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">Dear Liu,<div><br></div><div><div class="im"><font face="Helvetica">> </font><font face="Helvetica"><em>elec_comp,</em> </font><font face="Helvetica">which will automatically take ALL components into consideration for each file.</font><br>


<br></div>elec_comp = 1:size(EEG.icaweights,1);</div><div><br></div><div>Makoto<br><br><div class="gmail_quote">2013/3/6 Liu Pan <span dir="ltr"><<a href="mailto:pliu261@gmail.com" target="_blank">pliu261@gmail.com</a>></span><br>


<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div><div class="h5"><div><font face="Helvetica">Hi colleagues,</font></div>
<div><font face="Helvetica"></font> </div><div><font face="Helvetica">I'm using the <em>pop_eegthresh </em>function for epoch rejection based on component activities:</font></div>



<div><font face="Helvetica"></font> </div><div><font face="Helvetica"><em>[EEG Indexes] = pop_eegthresh( INEEG, typerej, elec_comp, lowthresh, upthresh,  starttime, endtime, superpose, reject)</em></font><br clear="all">



</div>
<div>in which <em>elec_comp </em><font face="Helvetica"><em>[e.g., 1:32]</em> </font>referes to the number of channel<font face="Helvetica">s or components selected for epoch rejection.</font></div><div><font face="Helvetica"></font> </div>




<div><font face="Helvetica">I want to run the script on a batch of .set files which have different numbers of components. Since it would be time-consuming to adjust the values of <em>elec_comp</em> file by file, I'm wondering wether </font><font face="Helvetica">there is a default setting of <em>elec_comp,</em> </font><font face="Helvetica">which will automatically take ALL components into consideration for each file. I tried to leave the bracket blank but it turmed out to be a default of "0" (0 component was selected for rejection).</font></div>




<div><font face="Helvetica"></font> </div><div><font face="Helvetica">Thanks for your input! </font><font face="Helvetica">Pan</font></div><span><font color="#888888"><div><font face="Helvetica"></font> </div>

<div> </div><div> </div><div> </div><div>

<br>-- <br>Liu Pan, PhD. Candidate<br>Neuropragmatics and Emotion Lab (Pell Lab)<br>School of Communication Sciences and Disorders<br>Faculty of Medicine, McGill University<br>Montreal, Canada<br><br>
</div>
</font></span><br></div></div>_______________________________________________<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></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>

-- <br>Makoto Miyakoshi<br>JSPS Postdoctral Fellow for Research Abroad<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br>Liu Pan, PhD. Candidate<br>Neuropragmatics and Emotion Lab (Pell Lab)<br>School of Communication Sciences and Disorders<br>Faculty of Medicine, McGill University<br>Montreal, Canada<br>
<br>