Mercurial > hg > ltpda
comparison m-toolbox/classes/@specwinViewer/cb_selectWindow.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 cb_selectWindow(varargin) | |
2 | |
3 mainfig = varargin{end}; | |
4 | |
5 | |
6 etxt = findobj(mainfig.handle, 'Tag', 'WindowPSLL'); | |
7 wsel = findobj(mainfig.handle, 'Tag', 'WindowSelect'); | |
8 | |
9 idx = get(wsel, 'Value'); | |
10 wins = get(wsel, 'String'); | |
11 win = wins{idx}; | |
12 | |
13 | |
14 if strcmpi(win, 'Kaiser') | |
15 set(etxt, 'Enable', 'on'); | |
16 else | |
17 set(etxt, 'Enable', 'off'); | |
18 end | |
19 | |
20 specwinViewer.plotWindow(mainfig, 'Time-domain'); | |
21 | |
22 end |