<html><head><base href="x-msg://460/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Sebastian,<div><br></div><div>you should call eegplot instead of pop_eegplot</div><div><br></div><div>eegplot(EEG.data, 'srate', EEG.srate, 'events', EEG.event);</div><div><br></div><div>and then you can add the additional options you pointed to.</div><div>The data marked for rejection is not stored in the EEG structure. It is in the TMPREJ variable upon closing the eegplot function. I recommend that you use the optional input 'command' of eegplot to process it. The TMPREJ structure can be processed using the eegplot2event function. You may look at eeg_rejmacro for examples.</div><div><br></div><div>Hope this helps,</div><div><br></div><div>Arno</div><div><br><div><div>On Jun 4, 2011, at 8:31 AM, Sebastian Urchs wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="DE" link="blue" vlink="purple"><div class="WordSection1" style="page: WordSection1; "><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><font size="2" face="Calibri"><span style="font-size: 11pt; ">Hi,<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><font size="2" face="Calibri"><span style="font-size: 11pt; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><font size="2" face="Calibri"><span lang="EN-US" style="font-size: 11pt; ">I am setting up a pipeline for multi-subject data preprocessing including ICA on a cluster. Now in order to clean up the data before running ICA I would like to use pop_eegplot() from inside a script that loops through all my subjects. I will then halt the script until the pop_eegplot() window is closed again and run eeg_eegrej() on the marked data-parts.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><font size="2" face="Calibri"><span lang="EN-US" style="font-size: 11pt; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><font size="2" face="Calibri"><span lang="EN-US" style="font-size: 11pt; ">Now my questions are:<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><font size="2" face="Calibri"><span lang="EN-US" style="font-size: 11pt; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><font size="2" face="Calibri"><span lang="EN-US" style="font-size: 11pt; ">: First, sliding through a large dataset in pop_eegplot() is not effective at the default displayed timerange. Of course this can be changed manually each time by pointing and clicking but it would be great if I could hand over arguments to pop_eegplot() when it is called that make the displayed time range say 50s. I have not managed to change<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><font size="2" face="Calibri"><span lang="EN-US" style="font-size: 11pt; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><font size="2" face="Calibri"><span lang="EN-US" style="font-size: 11pt; ">“eegplotoptions = { 'winlength', 5, 'events', EEG.event };”<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><font size="2" face="Calibri"><span lang="EN-US" style="font-size: 11pt; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><font size="2" face="Calibri"><span lang="EN-US" style="font-size: 11pt; ">arguments from the pop_eegplot.m file itself – could it be that those settings are hardwired into the file?<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><font size="2" face="Calibri"><span lang="EN-US" style="font-size: 11pt; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><font size="2" face="Calibri"><span lang="EN-US" style="font-size: 11pt; ">: Second, I am wondering where the arrays with the data marked for rejection are stored within the EEG structure. I would then use this information to call pop_eegrej() in the script which would make the whole rejection process much faster.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><font size="2" face="Calibri"><span lang="EN-US" style="font-size: 11pt; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><font size="2" face="Calibri"><span lang="EN-US" style="font-size: 11pt; ">Thanks a lot in advance!<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><font size="2" face="Calibri"><span lang="EN-US" style="font-size: 11pt; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><font size="2" face="Calibri"><span lang="EN-US" style="font-size: 11pt; ">Sebastian,<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><font size="2" face="Calibri"><span lang="EN-US" style="font-size: 11pt; ">LMU Munich<o:p></o:p></span></font></div></div>_______________________________________________<br>Eeglablist page:<span class="Apple-converted-space"> </span><a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" style="color: blue; text-decoration: underline; ">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>To unsubscribe, send an empty email to<span class="Apple-converted-space"> </span><a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" style="color: blue; text-decoration: underline; ">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>For digest mode, send an email with the subject "set digest mime" to<span class="Apple-converted-space"> </span><a href="mailto:eeglablist-request@sccn.ucsd.edu" style="color: blue; text-decoration: underline; ">eeglablist-request@sccn.ucsd.edu</a></div></blockquote></div><br></div></body></html>