<div dir="ltr">Dear Kelly, Ramon, Arno,<div><br></div><div>Kelly's event names contain space in the end so that the all the event names has 4-letter length. I think this is the cause of the problem. Most likely, some of Matlab functions handles space as space (I guess the one Kelly used does), while others not...</div><div><br></div><div>Kelly, my advice is that you don't use space in this way. It can cause troubles like this. Instead of using '510 ', you should choose '5100'. For the same reason, you don't want to use any weird character like %&*^()~+| it'll cause troubles as well (the same applies to path names, variable names, and file names!)</div><div><br></div><div>Makoto</div><div><br></div><div>%%%%%%%%%%%%%%%%%%%%%%%</div><div><div><div><div><div>>> unique({EEG.event.type}')</div><div><br></div><div>ans = </div><div><br></div><div>    '510 '</div><div>    '511 '</div><div>    '520 '</div><div>    '521 '</div><div>    '530 '</div><div>    '531 '</div><div>    '610 '</div><div>    '611 '</div><div>    '620 '</div><div>    '621 '</div><div>    '630 '</div><div>    '631 '</div><div>    '710 '</div><div>    '711 '</div><div>    '720 '</div><div>    '721 '</div><div>    '730 '</div><div>    '731 '</div><div>    '810 '</div><div>    '811 '</div><div>    '820 '</div><div>    '821 '</div><div>    '830 '</div><div>    '831 '</div><div>    'Answ'</div><div>    'EEGb'</div><div>    'Nois'</div><div>    'PicS'</div><div>    'PreO'</div><div>    'PstO'</div><div>    'blks'</div><div>    'boundary'</div><div>    'iTiO'</div><div>    'resp'</div><div>    'rest'</div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Jul 28, 2018 at 1:45 PM Kelly Michaelis <<a href="mailto:kcmichaelis@gmail.com" target="_blank">kcmichaelis@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><span style="font-size:small;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Hi John and Ramon,</span><div><br></div><div>Thank you for your responses. <br><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">I actually tried doing it through the GUI and using the eegh script, but that produced the same error. It seems the issue has to do with the presence of boundary events in a dataset - the command line function fails on any dataset that has boundary events.</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">I submitted a bugzilla report: <a href="https://sccn.ucsd.edu/bugzilla/show_bug.cgi?id=13798" target="_blank">https://sccn.ucsd.edu/bugzilla/show_bug.cgi?id=13798</a></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">I've been playing around with it. It seems it's a data type error arising from line 216. </div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><font face="monospace, monospace">Ieventtmp = [ Ieventtmp ; strmatch(tmpevent, tmpeventtype, 'exact') ];</font></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><span style="font-family:Courier;font-size:10px"><br class="gmail-m_-933464423226840722gmail-m_5665334161002655867m_5169730450196748513gmail-m_7232969537969680070gmail-Apple-interchange-newline"><span style="font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">I switched the strmatch for contains, and this seems to have fixed the error. </span><br></span></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><span style="font-size:10px"><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><font face="monospace, monospace"><br></font></span></span></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><span style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><font face="monospace, monospace">Ieventtmp = [ Ieventtmp find(contains(tmpeventtype,tmpevent))];</font><br></span></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><span style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><font face="monospace, monospace"><br></font></span></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><font face="arial, helvetica, sans-serif">If anyone else is having this issue, you may want to try this. </font></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><font face="arial, helvetica, sans-serif"><br></font></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><font face="arial, helvetica, sans-serif">Thanks,</font></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><font face="arial, helvetica, sans-serif">Kelly</font></div><br class="gmail-m_-933464423226840722gmail-m_5665334161002655867m_5169730450196748513gmail-m_7232969537969680070gmail-Apple-interchange-newline"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 27, 2018 at 12:15 PM, Ramón Martinez <span dir="ltr"><<a href="mailto:nucleuscub@gmail.com" target="_blank">nucleuscub@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear Kelly,<div>Would you mind to share a sample set so we can reproduce this issue? Please, consider doing so by filing a bug report <a href="https://sccn.ucsd.edu/bugzilla/" target="_blank">here</a>. </div><div> Thanks,</div><div>Ramon</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="gmail-m_-933464423226840722gmail-m_5665334161002655867m_5169730450196748513gmail-m_7232969537969680070h5">On Thu, Jul 26, 2018 at 6:27 PM, Kelly Michaelis <span dir="ltr"><<a href="mailto:kcmichaelis@gmail.com" target="_blank">kcmichaelis@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-m_-933464423226840722gmail-m_5665334161002655867m_5169730450196748513gmail-m_7232969537969680070h5"><div dir="ltr">Hello list,<div><br></div><div>I'm running into a very peculiar error with pop_epoch. I'm trying to process a large number of files, and so I really want to use command line functions rather that the GUI. However, when I try to use pop_epoch, I get the following error:</div><div><br></div><div><div>>EEG = pop_epoch( EEG, {  '510 '  '511 '  '610 '  '611 '  '710 '  '711 '  '810 '  '811 '  }, [-2  2], 'newname', 'EGI file resampled pruned with ICA epochs', 'epochinfo', 'yes');</div><div><div>>Error using pop_epoch (line 235)</div><div>>pop_epoch(): empty epoch range (no epochs were found).</div><div> </div></div><div><br></div><div>When I load the exact same dataset into the GUI and use Tools>Extract Epochs and select the same event types using ctrl/select to select all 8 events, everything works fine. I don't understand what the issue is. Can anyone help? Since I'm processing so many sets through a long pipeline, loading each one into the GUI to epoch will significantly slow down what would otherwise be an automatic process.</div><div><br></div><div>Thank you!</div><span class="gmail-m_-933464423226840722gmail-m_5665334161002655867m_5169730450196748513gmail-m_7232969537969680070m_7460543811981818818HOEnZb"><font color="#888888"><div><br></div><div>Kelly</div><div><br></div><div><br></div></font></span></div></div>
<br></div></div>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" 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="gmail-m_-933464423226840722gmail-m_5665334161002655867m_5169730450196748513gmail-m_7232969537969680070HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="gmail-m_-933464423226840722gmail-m_5665334161002655867m_5169730450196748513gmail-m_7232969537969680070HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="gmail-m_-933464423226840722gmail-m_5665334161002655867m_5169730450196748513gmail-m_7232969537969680070m_7460543811981818818gmail_signature"><div dir="ltr"><div><span style="color:rgb(136,136,136)">_____________________________________________________</span><br></div><div><span style="color:rgb(136,136,136)">Ramon Martinez-Cancino</span></div><span style="color:rgb(136,136,136)">Swartz Center for Computational Neuroscience</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Institute for Neural Computation, University of California San Diego</span><br></div></div>
</font></span></div>
</blockquote></div><br></div></div>
_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" 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></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-933464423226840722gmail-m_5665334161002655867gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div></div>