<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body id="punymce">Thanks for your reply.<br>The pop_autorej function is based on <span class="mw-headline" id="Rejecting_abnormally_distributed_data">abnormally distributed data.<br></span>My problem is that I want to use the spectral estimates method as my goal is to mark muscle activity (artifacts in  <i>25-45</i> Hz frequency window). <br><br>So let me be more specific: <br>How can I call <span lang="en-gb"><i> pop_rejspec</i> function from matlab command line </span><span lang="en-gb"></span>to mark trials for rejection ?<br><br>As I mentioned before, when I call it from GUI window - everything works fine. But when calling it from command line - trials that should be only marked for rejection - are actually rejected (even though <span lang="en-gb">'eegplotreject' argument = 0)</span><br>Because I want to have a code for my script, I need to call this function from the command line (not from the GUI). <br><br>Regards,<br>Tomek<br><br><br><br><br>Od: "Tyler Grummett" <tyler.grummett@flinders.edu.au><br>Do: "Tomek Ligęza" <tsl@poczta.fm>; <br>Wysłane: 0:30 Piątek 2014-03-28<br>Temat: Re: [Eeglablist] Problem with marking data epoch for rejection<style type="text/css">table.MsoNormalTable {
line-height:107%;
font-size:11pt;
font-family:Calibri, sans-serif;
}</style><br><br><blockquote style="margin:0px;border-left:1px solid #CCCCCC;" mce_style="margin:0px;border-left:1px solid #CCCCCC;"><div><div>Have a look at the function pop_autorej</div>
<div><br></div>
<div>Tyler</div>
<div><br>
On 28 Mar 2014, at 8:08 am, "Tomek Ligęza" <<a href="mailto:tsl@poczta.fm" mce_href="mailto:tsl@poczta.fm">tsl@poczta.fm</a>> wrote:<br><br></div>
<blockquote>
<div>
<p class="MsoNormal"><span xml:lang="en-gb" lang="en-gb">Dear List,</span></p>
<p class="MsoNormal"><span xml:lang="en-gb" lang="en-gb">I have an issue regarding rejecting data epochs using spectral estimates.</span></p>
<p class="MsoNormal"><span xml:lang="en-gb" lang="en-gb">I need EEGLAB to only mark trials for rejection. Everything works fine when I call the function from the menu: Tools -> Reject data epochs -> Reject by spectra and set "Reject marked trials"
 field to "NO".</span></p>
<p class="MsoNormal"><span xml:lang="en-gb" lang="en-gb">However, when I try the same using the command:</span></p>
<p class="MsoNormal"><span xml:lang="en-gb" lang="en-gb">EEG = pop_rejspec( EEG, 1,'elecrange',[1:EEG.nbchan-5] ,'threshold',[-100 30] ,'freqlimits',[25 45] ,'eegplotcom','','eegplotplotallrej',0,'eegplotreject',0);
</span></p>
<p class="MsoNormal"><span xml:lang="en-gb" lang="en-gb">trials that should be only marked for rejection,
<span> </span>are actually rejected <span>
 </span>(despite the fact that the argument ‘eegplotreject’ is equal to zero).</span></p>
<p class="MsoNormal"><span xml:lang="en-gb" lang="en-gb">Surprisingly,<span> 
</span>this command is copied from eeghistory after calling the function pop_rejspec from menu Tools.
</span></p>
<p class="MsoNormal"><span xml:lang="en-gb" lang="en-gb">How can I mark trials for rejection using a command?</span></p>
<p class="MsoNormal"><span xml:lang="en-gb" lang="en-gb">I would really appreciate your help as I have to use the "command option" in my data analysis.</span></p>
<p class="MsoNormal"><span xml:lang="en-gb" lang="en-gb"> </span></p>
<p class="MsoNormal"><span xml:lang="en-gb" lang="en-gb">Regards,</span></p>
<p class="MsoNormal"><span xml:lang="en-gb" lang="en-gb">Tomek Ligeza</span></p>
<p class="MsoNormal"><span xml:lang="en-gb" lang="en-gb">Jagiellonian University, Cracow, Poland</span></p>
</div>
</blockquote>
<blockquote>
<div><span>_______________________________________________</span><br><span>Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" mce_href="http://sccn.ucsd.edu/eeglab/eeglabmail.html">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a></span><br><span>To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" mce_href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">
eeglablist-unsubscribe@sccn.ucsd.edu</a></span><br><span>For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" mce_href="mailto:eeglablist-request@sccn.ucsd.edu">
eeglablist-request@sccn.ucsd.edu</a></span></div>
</blockquote>

<br><br></div></blockquote></body></html>