comparison m-toolbox/m/gui/gltpda/g_poleEdit.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 g_poleEdit(hObject, varargin)
2
3 global params
4
5 currParamIndex = get(hObject,'UserData');
6 poles = get(hObject,'String');
7 poles = readInput(poles,2);
8 [xx,yy] = size(poles);
9 poleList = pz();
10 for kk=1:xx
11 if (yy>1 && poles(kk,2)==0) || yy==1 , poleList(kk) = pz(poles(kk,1));
12 else poleList(kk) = pz(poles(kk,1),poles(kk,2));
13 end
14 end
15 params = pset(params,params.params(currParamIndex).key,poleList);
16 set(findobj('Tag','apply'),'Enable','on');
17 set(findobj('Tag','undo'),'Enable','on');
18
19 end