<< Ctfrreas Miscellanaeous functions (C toolbox) Time-Frequency representations (C - Toolbox) >>

stftb >> stftb > Miscellanaeous functions (C toolbox) > Cwindow

Cwindow

Creates a window of length N with a given shape.

Calling Sequence

H = Cwindow(N, NAME)
H = Cwindow(N, NAME, PARAM)
H = Cwindow(N, NAME, PARAM, PARAM2)

Parameters

N :

a positive integer value: the length of the window

NAME :

a character string : the name of the window shape (see below)

PARAM :

a real number: an optional parameter for 'Kaiser', "Spline" or "Nutbess" windows

PARAM2 :

a real number: a second optional parameters for "Spline" or "Nutbess" windows

H :

a real column vector of length N: The window coefficients

Description

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'

this function is similar to tftb_window but it is coded in C so it is more efficient.

Examples

h = Cwindow(256,'Gauss',0.005); plot(h);

See Also

Authors


Report an issue
<< Ctfrreas Miscellanaeous functions (C toolbox) Time-Frequency representations (C - Toolbox) >>