Mercurial > hg > ltpda
comparison m-toolbox/m/gui/gltpda/g_WindPSLCallback.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_WindPSLCallback(hObject,varargin) | |
2 | |
3 global params | |
4 | |
5 currParamID = get(hObject,'UserData'); | |
6 selectedWind = params.params(currParamID).val.type; | |
7 currWindLength = numel(params.params(currParamID).val.win); | |
8 currPSL = round(str2double(get(hObject,'String'))); | |
9 set(hObject,'String',num2str(currPSL)) | |
10 | |
11 windobj = specwin(selectedWind,currWindLength, currPSL); | |
12 params = pset(params,params.params(currParamID).key,windobj); | |
13 | |
14 set(findobj('Tag','apply'),'Enable','on'); | |
15 set(findobj('Tag','undo'),'Enable','on'); | |
16 | |
17 end |