Home > marsbar > @mardo_99 > ui_get_filter.m

ui_get_filter

PURPOSE ^

method to get filter via GUI

SYNOPSIS ^

function [D,descrip] = ui_get_filter(D)

DESCRIPTION ^

 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$  

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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]};

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