<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><br>
<div>Hi Pan,<br>
<br>
The size of the first (or smallest) dimension of<font face="Courier New"> EEG.icaweights</font> will always indicate the number of components in a given data set. So, in your script you can use<font face="Courier New"> [1:min(size(EEG.icaweights))]</font> for
 a generic "all components" elec_comp input to pop_eegthresh.<br>
<br>
<div style="font-family:Tahoma; font-size:13px">
<div class="BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="PlainText">James Desjardins, MA<br>
Electrophysiology Technologist<br>
Cognitive and Affective Neuroscience Lab, Psychology Department <br>
Jack and Nora Walker Centre for Lifespan Development Research<br>
Brock University<br>
500 Glenridge Ave.<br>
St. Catharines, ON, Canada L2S 3A1<br>
905-688-5550 x4676<br>
--<br>
"'Cause you never can tell What goes on down below!<br>
"This pool might be bigger Than you or I know!"<br>
<br>
McElligot's Pool<br>
Dr.Seuss 1947</div>
</span></font></div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF755925"><font color="#000000" face="Tahoma" size="2"><b>From:</b> eeglablist-bounces@sccn.ucsd.edu [eeglablist-bounces@sccn.ucsd.edu] on behalf of Liu Pan [pliu261@gmail.com]<br>
<b>Sent:</b> March-06-13 3:16 PM<br>
<b>To:</b> eeglablist<br>
<b>Subject:</b> [Eeglablist] question about pop_eegthresh function<br>
</font><br>
</div>
<div></div>
<div>
<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>
<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>
</div>
</div>
</div>
</body>
</html>