Home > marsbar > @mardo_2 > event_cols.m

event_cols

PURPOSE ^

method gets design columns for single event

SYNOPSIS ^

function I = event_cols(D, e_spec)

DESCRIPTION ^

 method gets design columns for single event 
 
 $Id$

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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)));

Generated on Wed 11-May-2022 16:26:09 by m2html © 2003-2019