<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div>It seems my guess was correct then. :)<br></div>eeg_checkset is calling strmatch to locate 'boundary'<br></div>events and then the error pops up.<br>
<br></div>It is likely that some of your event types are not <br></div>strings of characters. You can check it by doing the<br></div>following:<br></div>non_str = find(~cellfun(@ischar, {EEG.event.type}));<br><br></div>non_str contains indices of your events that are of<br>
</div>non-character type. Please investigate event types whose<br>indices are listed in non_str. If these are all numerical you<br>can do the following:<br></div>for ii = 1:length(non_str)<br></div>    EEG.event(non_str(ii)).type = num2str(EEG.event(non_str(ii)).type);<br>
</div>end<br><br></div>However, if I remember correctly recent versions of EEGlab<br></div>force EEG.event.type to be of character type... What version<br>of EEGlab do you use?<br></div><div><br></div></div><div class="gmail_extra">
<br clear="all"><div>Pozdrawiam,<br>Miko³aj Magnuski</div>
<br><br><div class="gmail_quote">2013/10/21 Mauricio Aspé Sánchez <span dir="ltr"><<a href="mailto:mauricio.aspe.s@gmail.com" target="_blank">mauricio.aspe.s@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="im"><span style="font-family:arial,sans-serif;font-size:13px">Hi!</span><div style="font-family:arial,sans-serif;font-size:13px">My EEG.pnts = 3941376</div><div style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px">I use the command EEG = pop_select(EEG, 'point', boundaries);</div><div style="font-family:arial,sans-serif;font-size:13px">where boundaries is the following matrix:</div>

<div style="font-family:arial,sans-serif;font-size:13px"><div><br></div><div><div>boundaries =</div><div><br></div><div>       88429     1449766</div><div>     1499582     2645319</div><div>     2684203     3835754</div>
</div>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">This way, I wanna <b>retain </b>the data points in the ranges [88429, 1449766] [1499582, 2645319] and [2684203, 3835754], but EEGLab reply with:</div>

</div><div style="font-family:arial,sans-serif;font-size:13px"><div><br></div><div class="im"><div><font color="#ff0000">Error using cell/strmatch (line 20)</font></div><div><font color="#ff0000">Requires character array or cell array of strings as inputs.</font></div>

<div><font color="#ff0000"><br></font></div></div></div><div class="im"><div style="font-family:arial,sans-serif;font-size:13px"><font color="#ff0000">Error in eeg_checkset (line 344)</font></div><div style="font-family:arial,sans-serif;font-size:13px">

<font color="#ff0000">                        boundsInd = strmatch('boundary', { tmpevent.type });</font></div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#ff0000"><br></font></div><div style="font-family:arial,sans-serif;font-size:13px">

<font color="#ff0000">Error in eeg_eegrej (line 102)</font></div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#ff0000">    EEG = eeg_checkset(EEG, 'eventconsistency');</font></div><div style="font-family:arial,sans-serif;font-size:13px">

<font color="#ff0000"><br></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#ff0000">Error in pop_select (line 496)</font></div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#ff0000">        EEG = eeg_eegrej(EEG, points);</font></div>

<div style="font-family:arial,sans-serif;font-size:13px">  </div><div style="font-family:arial,sans-serif;font-size:13px">Cannot figure out what I'm doing bad!!!</div><div style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px">All the best,</div><div style="font-family:arial,sans-serif;font-size:13px">Mauricio.</div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">
2013/10/18 Miko³aj Magnuski <span dir="ltr"><<a href="mailto:imponderabilion@gmail.com" target="_blank">imponderabilion@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<p dir="ltr">Hey Mauricio,</p>
<p dir="ltr">could you paste the rest of the error message? Then someone could take a look at what happens in the function that calls strmatch.<br>
It may be for example that the caller function looks for 'boundary' events but your EEG.event.type field includes also numerical values.</p>
<div class="gmail_quote">18 pa¼ 2013 19:43 "Mauricio Aspé Sánchez" <<a href="mailto:mauricio.aspe.s@gmail.com" target="_blank">mauricio.aspe.s@gmail.com</a>> napisa³(a):<div><div><br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">hey guys, I'm pretty sure that it's not about the comma, colon or brackets. <div>I can do it in this way:</div><div><br></div><div>EEG = eeg_eegrej(EEG, boundaries);<br></div><div><br></div><div>where boundaries is a matrix with the segments' boundaries that I wanna extract. Works fine, but I don't know why pop_select doesn't work.</div>



<div><br></div><div>All the best,</div><div>Mauricio.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/17 Makoto Miyakoshi <span dir="ltr"><<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>></span><br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Dear Mauricio,</div><div><br></div><div>My initial guess: Try without comma inside the square brackets, namely</div>



out=pop_select(EEG, 'nopoint', [1 88007])<br clear="all"><div class="gmail_extra">

<br></div><div class="gmail_extra">Makoto<br><br><div class="gmail_quote"><div><div>2013/10/15 Mauricio Aspé Sánchez <span dir="ltr"><<a href="mailto:mauricio.aspe.s@gmail.com" target="_blank">mauricio.aspe.s@gmail.com</a>></span><br>





</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr"><div>Hey guys, can somebody help me in how to use the pop_select function from the command line?</div>





<div><br></div><div>I wanna delete a range of data from all the channels.</div><div>If I write, for instance:</div>
out=pop_select(EEG, 'nopoint', [1,88007])<br clear="all"><div><br></div><div>I get the error</div><div><div>Error using cell/strmatch (line 20)</div><div>Requires character array or cell array of strings as inputs.</div>






</div><div><br></div><div>When I do that from the GUI is the same.</div><div>What is the correct format for the 'nopoint' options?</div><div><br></div><div>All the best and thanks a lot,</div><div>Mauricio.</div>





<span><font color="#888888">-- <br>
<div dir="ltr">Mauricio A. Aspé Sánchez.<div><div><br></div></div></div>
</font></span></div>
<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><font color="#888888"><br>
</font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>

-- <br><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Mauricio A. Aspé Sánchez.<div><div><br></div></div></div>
</div>
<br>_______________________________________________<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><br></blockquote></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Mauricio A. Aspé Sánchez.<div><div><br></div></div></div>
</div>
</div></div></blockquote></div><br></div>