method returns modality of design $Id$
0001 function mod_str = modality(D) 0002 % method returns modality of design 0003 % 0004 % $Id$ 0005 0006 SPM = des_struct(D); 0007 try 0008 SPM.Sess(1); 0009 mod_str = 'fmri'; 0010 catch 0011 mod_str = 'pet'; 0012 end