Home > marsbar > @mardo > event_types_named.m

event_types_named

PURPOSE ^

method returns event types structures for events with same names

SYNOPSIS ^

function et = event_types_named(D)

DESCRIPTION ^

 method returns event types structures for events with same names
 FORMAT et = event_types_named(D)
 
 $Id$

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Thu 17-Mar-2016 01:14:46 by m2html © 2005