Home > marsbar > @mardo_2 > block_cols.m

block_cols

PURPOSE ^

method gets design columns for block (session / subject)

SYNOPSIS ^

function cols = block_cols(D)

DESCRIPTION ^

 method gets design columns for block (session / subject)
 FORMAT cols = block_cols(D)
 
 Returns cell array of column indices (one per session)

 $Id$

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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 cols  = {SPM.Sess(:).col}; 

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