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