method to get filter via GUI FORMAT [D,descrip] = ui_get_filter(D) Input D - design Returns D - design with modified filter descrip - cell array of strings describing filter $Id$
0001 function [D,descrip] = ui_get_filter(D) 0002 % method to get filter via GUI 0003 % FORMAT [D,descrip] = ui_get_filter(D) 0004 % 0005 % Input 0006 % D - design 0007 % 0008 % Returns 0009 % D - design with modified filter 0010 % descrip - cell array of strings describing filter 0011 % 0012 % $Id$ 0013 0014 SPM = des_struct(D); 0015 [K Hf Lf] = pr_get_filter(SPM.xX.RT, SPM.Sess); 0016 SPM.xX.K = K; 0017 if ~isfield(SPM, 'xsDes') 0018 SPM.xsDes = []; 0019 end 0020 SPM.xsDes.High_pass_Filter = Lf; 0021 SPM.xsDes.Low_pass_Filter = Hf; 0022 0023 % return args 0024 D = des_struct(D, SPM); 0025 0026 descrip = {['High_pass_Filter:\t%s', Lf],... 0027 ['Low_pass_Filter: \t%s', Hf]};