Main Content

kbdwin

Kaiser-Bessel-derived window

Description

wdw = kbdwin(N) returns an N-point Kaiser-Bessel-derived (KBD) window.

example

wdw = kbdwin(N,Beta) specifies the tuning parameter, Beta.

example

Examples

collapse all

Create a 1024-point Kaiser-Bessel-derived (KBD) window. Visualize the KBD window in the time and frequency domains using wvtool.

wdw = kbdwin(1024);
wvtool(wdw)

Figure Window Visualization Tool contains 2 axes objects and other objects of type uimenu, uitoolbar, uipanel. Axes object 1 with title Time domain, xlabel Samples, ylabel Amplitude contains an object of type line. Axes object 2 with title Frequency domain, xlabel Normalized Frequency (\times\pi rad/sample), ylabel Magnitude (dB) contains an object of type line.

Create three 512-point KBD windows, with Beta set to 1, 10, and 100. Display the windows for comparison using wvtool.

N = 512;
beta1 = kbdwin(N,1);
beta10 = kbdwin(N,10);
beta100 = kbdwin(N,100);

wvtool(beta1,beta10,beta100)

Figure Window Visualization Tool contains 2 axes objects and other objects of type uimenu, uitoolbar, uipanel. Axes object 1 with title Time domain, xlabel Samples, ylabel Amplitude contains 3 objects of type line. Axes object 2 with title Frequency domain, xlabel Normalized Frequency (\times\pi rad/sample), ylabel Magnitude (dB) contains 3 objects of type line.

Input Arguments

collapse all

Number of points in the KBD window, specified as an even positive integer scalar.

Data Types: single | double

Tuning parameter, specified as a nonnegative real scalar. If unspecified, Beta defaults to 5.

Data Types: single | double

Output Arguments

collapse all

Kaiser-Bessel-derived window, returned as an N-point column vector.

Algorithms

The coefficients of a Kaiser-Bessel-derived window are computed using the equation:

wdw[n] ={i=1nw[i]i=1N2+1w[i]if1n<(N2)i=1Nnw[i]i=1N2+1w[i]if(N2+1)n<N

where w is a Kaiser window designed using the kaiser function:

w = kaiser(N/2+1,Beta*pi)
where N is the number of points in the KBD window and Beta is the tuning parameter.

References

[1] Bosi, Marina, and Richard E. Goldberg. Introduction to Digital Audio Coding and Standards. Dordrecht: Kluwer, 2003.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2019a

See Also

| |