<< sawtooth Choice of Particular Signals Time-Domain Processing >>

stftb >> stftb > Choice of Particular Signals > tftb_window

tftb_window

Window generation

Calling Sequence

H = tftb_window(N)
H = tftb_window(N, NAME)
H = tftb_window(N, NAME, PARAM)
H = tftb_window(N, NAME, PARAM, PARAM2)
H = tftb_window(...,'plot')

Parameters

N :

length of the window

NAME :

name of the window shape (default : Hamming)

PARAM :

optional parameter

PARAM2 :

second optional parameters

'plot':

if one input parameter is 'plot', the window will be plotted

Description

yields a window of length N with a given shape.

Possible names are :

'Hamming', 'Hanning', 'Nuttall', 'Papoulis', 'Harris',

'Rect', 'Triang', 'Bartlett', 'BartHann', 'Blackman'

'Gauss', 'Parzen', 'Kaiser', 'Dolph', 'Hanna'.

'Nutbess', 'spline', 'Flattop'

For the gaussian window, an optionnal parameter K sets the value at both extremities. The default value is 0.005

For the Kaiser-Bessel window, an optionnal parameter sets the scale. The default value is 3*pi.

For the Spline windows, h=tftb_window(N,'spline',nfreq,p) yields a spline weighting function of order p and frequency bandwidth proportional to nfreq.

Examples

h = tftb_window(256,'Gauss',0.005);
plot(0:255, h);
a = gca(); a.data_bounds=([0,255,-0.1,1.1]); xgrid

See also

Authors


Report an issue
<< sawtooth Choice of Particular Signals Time-Domain Processing >>