0001 function filt = ltpdv_filter_from_standard_panel(panh)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 h = findobj(panh, 'Tag', 'LTPDVfiltStandardType');
0013 idx = get(h, 'Value');
0014 strs = get(h, 'String');
0015 ftype = strs{idx};
0016
0017 disp(sprintf('** Building %s filter', ftype))
0018
0019
0020 h = findobj(panh, 'Tag', 'LTPDVfiltStandardGain');
0021 gain = str2double(get(h, 'String'));
0022
0023
0024 h = findobj(panh, 'Tag', 'LTPDVfiltStandardCutoff');
0025 fc = str2num(get(h, 'String'));
0026
0027
0028 h = findobj(panh, 'Tag', 'LTPDVfiltStandardFs');
0029 fs = str2double(get(h, 'String'));
0030
0031
0032 h = findobj(panh, 'Tag', 'LTPDVfiltStandardOrder');
0033 order = str2double(get(h, 'String'));
0034
0035
0036 h = findobj(panh, 'Tag', 'LTPDVfiltStandardRipple');
0037 ripple = str2double(get(h, 'String'));
0038
0039
0040 pl = plist('type', lower(ftype), ...
0041 'Gain', gain, ...
0042 'fc', fc, ...
0043 'fs', fs, ...
0044 'order', order, ...
0045 'ripple', ripple);
0046
0047
0048 filt = miir(pl);
0049
0050