Brian -<br><br>There is a menu item to produce an event histogram. Arno Delorme suggests the following code, which you may modify to suit your purposes.<br><br><div>allevents = { EEG.event.type };</div><div>eventtypes = unique( allevents );</div>

<div>for i = 1:length(eventtypes)</div><div><span style="white-space: pre;">  </span>n = strmatch(eventtypes{i}, allevents);<br></div><div><span style="white-space: pre;">   </span>printf('There %d events of type '%s'\n", n, eventtypes{i});<br>

</div><div>end;</div><div><br></div><div>Scott Makeig<br></div><br clear="all"><br>-- <br>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, <a href="http://sccn.ucsd.edu/%7Escott" target="_blank">http://sccn.ucsd.edu/~scott</a><br>