[Eeglablist] event type histogram

Scott Makeig smakeig at gmail.com
Fri Jan 2 20:53:30 PST 2009


Brian -

There is a menu item to produce an event histogram. Arno Delorme suggests
the following code, which you may modify to suit your purposes.

allevents = { EEG.event.type };
eventtypes = unique( allevents );
for i = 1:length(eventtypes)
n = strmatch(eventtypes{i}, allevents);
printf('There %d events of type '%s'\n", n, eventtypes{i});
end;

Scott Makeig


-- 
Scott Makeig, Research Scientist and Director, Swartz Center for
Computational Neuroscience, Institute for Neural Computation, University of
California San Diego, La Jolla CA 92093-0961,
http://sccn.ucsd.edu/~scott<http://sccn.ucsd.edu/%7Escott>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20090102/e3956be7/attachment.html>


More information about the eeglablist mailing list