Creates a window of length N with a given shape.
H = Cwindow(N, NAME) H = Cwindow(N, NAME, PARAM) H = Cwindow(N, NAME, PARAM, PARAM2)
a positive integer value: the length of the window
a character string : the name of the window shape (see below)
a real number: an optional parameter for 'Kaiser', "Spline" or "Nutbess" windows
a real number: a second optional parameters for "Spline" or "Nutbess" windows
a real column vector of length N: The window coefficients
Creates a window of length N with a given shape.
Possible names are :
'Hamming', 'Hanning', 'Kaiser', 'Nuttall', 'Papoulis', 'Sine', 'Harris', 'Rect', 'Triang', 'Bartlett', 'BartHann', 'Blackman' 'Gauss', 'Parzen', 'Powersine', 'Nutbess', 'spline', 'Flattop_ni', 'Flattop', 'Flattop_m', 'Flattop_srs'
with
with
and
The optional parameter PARAM gives the beta value. Its default value is 3π.
with a₀=0.3635819, a₁=0.4891775, a₂=0.1365995, a₃=0.0106411
with α=0.16, a₀=(1-α)/2, a₁=1/2, a₂=α/2
with a₀=0.35875, a₁=0.48829, a₂=0.14129, a₃=0.01168
with a₀=0.62, a₁=0.48, a₂=0.38
For the gaussian window, the optionnal parameter K sets the value at both extremities. The default value is 0.005
Where L is the optionnal parameter (defaut value: 1)
The rectangular window (L = 0), the sine window (L = 1/2), and the Hann window (L = 1) are members of this family.
Where nfreq (frequency bandwidth) is given by the arguement PARAM and the spline order p is given by the optional parameter PARAM2 (default value π.N.nfreq/10).
with a₀=0.2810639, a₁=0.5208972, a₂=0.1980399
with a₀=.21557895, a₁=0.41663158, a₂=0.277263158, a₃=0.083578947, a₄=0.006947368
with a₀=1, a₁=1.93, a₂=1.29, a₃=0.388, a₄=0.028
![]() | this function is similar to tftb_window but it is coded in C so it is more efficient. |
h = Cwindow(256,'Gauss',0.005); plot(h); | ![]() | ![]() |