method gets design columns for block (session / subject) FORMAT cols = block_cols(D) Returns cell array of column indices (one per session) $Id$
0001 function cols = block_cols(D) 0002 % method gets design columns for block (session / subject) 0003 % FORMAT cols = block_cols(D) 0004 % 0005 % Returns cell array of column indices (one per session) 0006 % 0007 % $Id$ 0008 0009 if ~is_fmri(D) 0010 error('Needs FMRI design'); 0011 end 0012 0013 SPM = des_struct(D); 0014 Sess = SPM.Sess; 0015 for i = 1:length(Sess) 0016 cols{i} = Sess{i}.col; 0017 end