Mercurial > hg > ltpda
view 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 |
line wrap: on
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>