Create spectral windows


To create a spectral window object, you call the specwin class constructor. The following code fragment creates a 100-point Hanning window:

	>> w = specwin('Hanning', 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

	-----------------------------
	

List of available window functions

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:

	>> w = specwin('Kaiser', 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

	----------------------------
	




©LTP Team