method gets design columns for single event $Id$
0001 function I = event_cols(D, e_spec) 0002 % method gets design columns for single event 0003 % 0004 % $Id$ 0005 0006 if nargin < 2 0007 error('Need design and event spec'); 0008 end 0009 if ~is_fmri(D) 0010 error('Needs FMRI design'); 0011 end 0012 0013 SPM = des_struct(D); 0014 Sess = SPM.Sess; 0015 bf = SPM.xBF.bf; 0016 ss = e_spec(1); 0017 en = e_spec(2); 0018 I = Sess(ss).col(Sess(ss).Fc(en).i(1:size(bf,2)));