Mercurial > hg > ltpda
comparison m-toolbox/m/gui/ltpdv/callbacks/ltpdv_zeroAdd.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 function ltpdv_zeroAdd(varargin) | |
2 | |
3 % Handles | |
4 myh = varargin{1}; | |
5 htab = varargin{end-1}; | |
6 mainfig = varargin{end}; | |
7 | |
8 | |
9 % Get freq | |
10 fh = findobj(htab, 'Tag', 'LTPDVfilterPZfreq'); | |
11 fstr = get(fh, 'String'); | |
12 if ~isempty(fstr) | |
13 f = str2num(fstr); | |
14 | |
15 % Get Q | |
16 qh = findobj(htab, 'Tag', 'LTPDVfilterPZq'); | |
17 q = str2num(get(qh, 'String')); | |
18 | |
19 % Add to zero list | |
20 zeros = getappdata(mainfig, 'FilterZeros'); | |
21 if isempty(q) | |
22 zeros = [zeros pz(f)]; | |
23 else | |
24 zeros = [zeros pz(f,q)]; | |
25 end | |
26 setappdata(mainfig, 'FilterZeros', zeros); | |
27 | |
28 % Set pole list | |
29 ltpdv_set_zero_list(mainfig); | |
30 end | |
31 | |
32 |