Home > m > gui > ltpdv > callbacks > ltpdv_filter_getf.m

ltpdv_filter_getf

PURPOSE ^

get f1

SYNOPSIS ^

function pl = ltpdv_filter_getf(panh)

DESCRIPTION ^

 get f1

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function pl = ltpdv_filter_getf(panh)
0002 
0003 % get f1
0004 h = findobj(panh, 'Tag', 'LTPDVfilterF1');
0005 f1 = str2num(get(h, 'String'));
0006 % get f2
0007 h = findobj(panh, 'Tag', 'LTPDVfilterF2');
0008 f2 = str2num(get(h, 'String'));
0009 % get nf
0010 h = findobj(panh, 'Tag', 'LTPDVfilterNf');
0011 nf = str2num(get(h, 'String'));
0012 % get scale
0013 h    = findobj(panh, 'Tag', 'LTPDVfilterScale');
0014 idx  = get(h, 'Value');
0015 strs = get(h, 'String');
0016 scale = strs{idx};
0017 
0018 pl = plist('scale', scale);
0019 if ~isempty(f1)
0020    pl = append(pl, 'f1', f1);
0021 end
0022 if ~isempty(f2)
0023    pl = append(pl, 'f2', f2);
0024 end
0025 if ~isempty(nf)
0026    pl = append(pl, 'nf', nf);
0027 end
0028 
0029 % END

Generated on Mon 08-Sep-2008 13:18:47 by m2html © 2003