method returns event types structures for events with same names FORMAT et = event_types_named(D) $Id$
0001 function et = event_types_named(D) 0002 % method returns event types structures for events with same names 0003 % FORMAT et = event_types_named(D) 0004 % 0005 % $Id$ 0006 0007 [e_s enames] = event_specs(D); 0008 0009 ets = unique(enames); 0010 0011 for e = 1:length(ets) 0012 et(e).name = ets{e}; 0013 in_evs = ismember(enames, ets{e}); 0014 et(e).e_spec = e_s(:, in_evs); 0015 end