generate
Class: sigwin.gausswin
Namespace: sigwin
Generates Gaussian window
Syntax
win = generate(H)
Description
win = generate(H)
returns the values of
the Gaussian window object H
as a double-precision
column vector.
Examples
Gaussian Windows
Generate two Gaussian windows of length N = 64. Specify α values of 4 and 2. Show information about the window objects. Display the windows.
H4 = sigwin.gausswin(64,4); H2 = sigwin.gausswin(64,2); wvt = wvtool(H4,H2); legend(wvt.CurrentAxes,'\alpha=4','\alpha=2')
The window with α = 4 has a wider mainlobe and less sidelobe energy.
Generate a Gaussian window with N = 16 and α = 3. Return the window values as a column vector. Show information about the window object. Display the window.
H = sigwin.gausswin(16,3); win = generate(H)
win = 16×1
0.0111
0.0340
0.0889
0.1979
0.3753
0.6065
0.8353
0.9802
0.9802
0.8353
⋮
wininfo = info(H)
wininfo = 4x15 char array
'Gaussian Window'
'---------------'
'Length : 16 '
'Alpha : 3 '
wvtool(H)
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)