<div dir="ltr">yes, I was using the version 10.2.2.b, but it works perfectly changing the numerical labels of event.types to strings.<div>Thanks a lot.</div><div><br></div><div>All the best, </div><div>Mauricio.</div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/7 Arnaud Delorme <span dir="ltr"><<a href="mailto:arnodelorme@gmail.com" target="_blank">arnodelorme@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Mauricio,<br>
<br>
seems to me like you are using an outdated version of EEGLAB. Let us know if the problem persist with a more recent version.<br>
Best,<br>
<br>
Arno<br>
<div class="HOEnZb"><div class="h5"><br>
On Oct 22, 2013, at 6:16 AM, Andreas Widmann <<a href="mailto:widmann@uni-leipzig.de">widmann@uni-leipzig.de</a>> wrote:<br>
<br>
> Hi Mauricio,<br>
><br>
>> could you paste the rest of the error message?<br>
><br>
> The rest of the error message is essential :) The problem is not in pop_select or your syntax, there appears to be a problem with the event structure in your dataset. Your dataset does not pass eeg_checkset, which is used by pop_select/eeg_eegrej to check conformity of the dataset.<br>

><br>
> Do you possibly have numerical values in the type field of your event structure (should be strings)? Probably, easiest is to check your dataset directly with eeg_checkset to find the source of the problem. Provide an as small as possible sample file (download link) demonstrating the problem if you can not solve it.<br>

><br>
> Best,<br>
> Andreas<br>
><br>
> Am 21.10.2013 um 17:11 schrieb Mauricio Aspé Sánchez <<a href="mailto:mauricio.aspe.s@gmail.com">mauricio.aspe.s@gmail.com</a>>:<br>
><br>
>> Hi!<br>
>> My EEG.pnts = 3941376<br>
>><br>
>> I use the command EEG = pop_select(EEG, 'point', boundaries);<br>
>> where boundaries is the following matrix:<br>
>><br>
>> boundaries =<br>
>><br>
>>       88429     1449766<br>
>>     1499582     2645319<br>
>>     2684203     3835754<br>
>><br>
>> This way, I wanna retain the data points in the ranges [88429, 1449766] [1499582, 2645319] and [2684203, 3835754], but EEGLab reply with:<br>
>><br>
>> Error using cell/strmatch (line 20)<br>
>> Requires character array or cell array of strings as inputs.<br>
>><br>
>> Error in eeg_checkset (line 344)<br>
>>                        boundsInd = strmatch('boundary', { tmpevent.type });<br>
>><br>
>> Error in eeg_eegrej (line 102)<br>
>>    EEG = eeg_checkset(EEG, 'eventconsistency');<br>
>><br>
>> Error in pop_select (line 496)<br>
>>        EEG = eeg_eegrej(EEG, points);<br>
>><br>
>> Cannot figure out what I'm doing bad!!!<br>
>><br>
>> All the best,<br>
>> Mauricio.<br>
>><br>
>><br>
>> 2013/10/18 Mikołaj Magnuski <<a href="mailto:imponderabilion@gmail.com">imponderabilion@gmail.com</a>><br>
>> Hey Mauricio,<br>
>><br>
>> 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.<br>
>><br>
>> 18 paź 2013 19:43 "Mauricio Aspé Sánchez" <<a href="mailto:mauricio.aspe.s@gmail.com">mauricio.aspe.s@gmail.com</a>> napisał(a):<br>
>><br>
>> hey guys, I'm pretty sure that it's not about the comma, colon or brackets.<br>
>> I can do it in this way:<br>
>><br>
>> EEG = eeg_eegrej(EEG, boundaries);<br>
>><br>
>> 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.<br>
>><br>
>> All the best,<br>
>> Mauricio.<br>
>><br>
>><br>
>> 2013/10/17 Makoto Miyakoshi <<a href="mailto:mmiyakoshi@ucsd.edu">mmiyakoshi@ucsd.edu</a>><br>
>> Dear Mauricio,<br>
>><br>
>> My initial guess: Try without comma inside the square brackets, namely<br>
>> out=pop_select(EEG, 'nopoint', [1 88007])<br>
>><br>
>> Makoto<br>
>><br>
>> 2013/10/15 Mauricio Aspé Sánchez <<a href="mailto:mauricio.aspe.s@gmail.com">mauricio.aspe.s@gmail.com</a>><br>
>> Hey guys, can somebody help me in how to use the pop_select function from the command line?<br>
>><br>
>> I wanna delete a range of data from all the channels.<br>
>> If I write, for instance:<br>
>> out=pop_select(EEG, 'nopoint', [1,88007])<br>
>><br>
>> I get the error<br>
>> Error using cell/strmatch (line 20)<br>
>> Requires character array or cell array of strings as inputs.<br>
>><br>
>> When I do that from the GUI is the same.<br>
>> What is the correct format for the 'nopoint' options?<br>
>><br>
>> All the best and thanks a lot,<br>
>> Mauricio.<br>
>> --<br>
>> Mauricio A. Aspé Sánchez.<br>
>><br>
>><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">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">eeglablist-request@sccn.ucsd.edu</a><br>
>><br>
>><br>
>><br>
>> --<br>
>> Makoto Miyakoshi<br>
>> Swartz Center for Computational Neuroscience<br>
>> Institute for Neural Computation, University of California San Diego<br>
>><br>
>><br>
>><br>
>> --<br>
>> Mauricio A. Aspé Sánchez.<br>
>><br>
>><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">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">eeglablist-request@sccn.ucsd.edu</a><br>
>><br>
>><br>
>><br>
>> --<br>
>> Mauricio A. Aspé Sánchez.<br>
>><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">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">eeglablist-request@sccn.ucsd.edu</a><br>
><br>
><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">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">eeglablist-request@sccn.ucsd.edu</a><br>
<br>
</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>