[Eeglablist] Events not listed when extracting epochs with pop_epoch

Mikołaj Magnuski imponderabilion at gmail.com
Sat Sep 15 06:07:11 PDT 2012


Becky,

It may be relevant to your problem that at least one of
your event types has trailing spaces (the one that you
presented as example - 55).

As you wrote matlab displays the type as:
type: '55  '

which means there are two spaces after two five characters.
I'm not sure if it should make any difference for
EEGLAB in displaying event types, but it could cause
the error you report (empty epoch range), because you
may not have any '55' event types, but '55  ' instead.

You may do a quickcheck of this by coping the following code:

types = unique({EEG.event.type});
which_have_spaces = cellfun(@isempty, regexp(types, ' '));
if ~isempty(which_have_spaces)
types_with_spaces = types(which_have_spaces);
end

If this is the case you could then deblank all the events
and urevents by looping through them and see if it makes
any difference.
Anyway, once you find your spaced event types, you could
also try using pop_epoch again, but with correct event
types.

Mikolaj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20120915/3f3866f5/attachment.html>


More information about the eeglablist mailing list