Home > marsbar > @mardo_99 > 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 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));

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