returns 1 if design has whitening filter $Id$
0001 function tf = has_whitener(D) 0002 % returns 1 if design has whitening filter 0003 % 0004 % $Id$ 0005 0006 tf = 0; 0007 SPM = des_struct(D); 0008 if isfield(SPM, 'xX') 0009 tf = isfield(SPM.xX, 'W'); 0010 end