Mercurial > hg > ltpda
comparison m-toolbox/m/gui/ltpdv/callbacks/ltpdv_poleAdd.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_poleAdd(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 pole list | |
20 poles = getappdata(mainfig, 'FilterPoles'); | |
21 if isempty(q) | |
22 poles = [poles pz(f)]; | |
23 else | |
24 poles = [poles pz(f,q)]; | |
25 end | |
26 setappdata(mainfig, 'FilterPoles', poles); | |
27 | |
28 % Set pole list | |
29 ltpdv_set_pole_list(mainfig); | |
30 end | |
31 | |
32 |