Mercurial > hg > ltpda
comparison m-toolbox/m/gui/gltpda/g_WindlengthCallback.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_WindlengthCallback(hObject,varargin) | |
2 | |
3 global params | |
4 | |
5 currParamID = get(hObject,'UserData'); | |
6 selectedWind = params.params(currParamID).val.type; | |
7 currWindLength = str2double(get(hObject,'String')); | |
8 | |
9 | |
10 if strcmp(selectedWind,'Kaiser') | |
11 windobj = specwin(selectedWind,currWindLength, params.params(currParamID).val.psll); | |
12 else | |
13 windobj = specwin(selectedWind,currWindLength); | |
14 end | |
15 | |
16 params=pset(params,params.params(currParamID).key,windobj); | |
17 | |
18 set(findobj('Tag','apply'),'Enable','on'); | |
19 set(findobj('Tag','undo'),'Enable','on'); | |
20 | |
21 end |