method to get / set event types for design FORMAT et = event_types(D) to return event types for design FORMAT D = event_types(D, et) to set event types for design $Id$
0001 function res = event_types(D, et) 0002 % method to get / set event types for design 0003 % FORMAT et = event_types(D) 0004 % to return event types for design 0005 % 0006 % FORMAT D = event_types(D, et) 0007 % to set event types for design 0008 % 0009 % $Id$ 0010 0011 SPM = des_struct(D); 0012 if nargin < 2 0013 % get 0014 res = mars_struct('getifthere', SPM, 'event_types'); 0015 else 0016 % set 0017 SPM.event_types = et; 0018 res = des_struct(D, SPM); 0019 end