comparison m-toolbox/html_help/help/ug/specwin_create_content.html @ 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
2 <p>To create a spectral window object, you call the <tt>specwin</tt> class constructor. The following
3 code fragment creates a 100-point Hanning window:
4 </p>
5 <div class="fragment"><pre>
6 >> w = specwin(<span class="string">'Hanning'</span>, 100)
7 -------- Hanning ------------
8
9 alpha: 0
10 psll: 31.5
11 rov: 50
12 nenbw: 1.5
13 w3db: 1.4382
14 flatness: -1.4236
15 ws: 50
16 ws2: 37.5
17 win: 100
18
19 -----------------------------
20 </pre></div>
21 <p><a href="specwin_description.html">List of available window functions</a></p>
22 <p>
23 In the special case of creating a Kaiser window, the additional input parameter, PSLL, must be
24 supplied. For example, the following code creates a 100-point Kaiser window with -150dB peak
25 side-lobe level:
26 </p>
27 <div class="fragment"><pre>
28 >> w = specwin(<span class="string">'Kaiser'</span>, 100, 150)
29 -------- Kaiser ------------
30
31 alpha: 6.18029
32 psll: 150
33 rov: 73.3738
34 nenbw: 2.52989
35 w3db: 2.38506
36 flatness: -0.52279
37 ws: 28.2558
38 ws2: 20.1819
39 win: 100
40
41 ----------------------------
42 </pre></div>