returns 1 if design looks like it is of SPM5 / 8 type $Id: my_design.m 328 2004-03-03 01:56:03Z matthewbrett $
0001 function tf = my_design(des) 0002 % returns 1 if design looks like it is of SPM5 / 8 type 0003 % 0004 % $Id: my_design.m 328 2004-03-03 01:56:03Z matthewbrett $ 0005 0006 tf = 0; 0007 if isfield(des, 'SPM'), des = des.SPM; end 0008 if isfield(des, 'SPMid') 0009 tf = ~isempty(strmatch('SPM5', des.SPMid)) | ... 0010 ~isempty(strmatch('SPM8', des.SPMid)) | ... 0011 ~isempty(strmatch('SPM12', des.SPMid)); 0012 end