comparison m-toolbox/classes/@specwin/toPlist.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 % TOPLIST creates a plist representing the specwin object.
2 %
3 % CALL: pl = w.toPlist;
4 %
5 % M Hewitson 15-08-11
6 %
7 % $Id: toPlist.m,v 1.1 2011/08/15 06:45:43 hewitson Exp $
8 %
9
10 function pl = toPlist(win)
11 switch lower(win.type)
12 case 'kaiser'
13 pl = plist('win', win.type, 'length', win.len, 'psll', win.psll);
14 case 'levelledhanning'
15 pl = plist('win', win.type, 'length', win.len, 'levelorder', win.levelorder);
16 otherwise
17 pl = plist('win', win.type, 'length', win.len);
18 end
19 end
20