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 ss = e_spec(1); 0016 en = e_spec(2); 0017 0018 j = 1:size(Sess{ss}.sf{en},2):length(Sess{ss}.ind{en}); 0019 I = Sess{ss}.col(Sess{ss}.ind{en}(j));