view m-toolbox/html_help/help/ug/specwin_create_content.html @ 8:2f5c9bd7d95d
database-connection-manager
Clarify ltpda_uo.retrieve parameters handling
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Mon, 05 Dec 2011 16:20:06 +0100 (2011-12-05)
parents
f0afece42f48
children
line source
+ −
+ − <p>To create a spectral window object, you call the <tt>specwin</tt> class constructor. The following
+ − code fragment creates a 100-point Hanning window:
+ − </p>
+ − <div class="fragment"><pre>
+ − >> w = specwin(<span class="string">'Hanning'</span>, 100)
+ − -------- Hanning ------------
+ −
+ − alpha: 0
+ − psll: 31.5
+ − rov: 50
+ − nenbw: 1.5
+ − w3db: 1.4382
+ − flatness: -1.4236
+ − ws: 50
+ − ws2: 37.5
+ − win: 100
+ −
+ − -----------------------------
+ − </pre></div>
+ − <p><a href="specwin_description.html">List of available window functions</a></p>
+ − <p>
+ − In the special case of creating a Kaiser window, the additional input parameter, PSLL, must be
+ − supplied. For example, the following code creates a 100-point Kaiser window with -150dB peak
+ − side-lobe level:
+ − </p>
+ − <div class="fragment"><pre>
+ − >> w = specwin(<span class="string">'Kaiser'</span>, 100, 150)
+ − -------- Kaiser ------------
+ −
+ − alpha: 6.18029
+ − psll: 150
+ − rov: 73.3738
+ − nenbw: 2.52989
+ − w3db: 2.38506
+ − flatness: -0.52279
+ − ws: 28.2558
+ − ws2: 20.1819
+ − win: 100
+ −
+ − ----------------------------
+ − </pre></div>