generate
Class: sigwin.hamming
Namespace: sigwin
Generates Hamming window
Syntax
win = generate(H)
Description
win = generate(H)
returns the values of
the Hamming window object as a double-precision column vector.
Examples
Hamming Windows
Generate two Hamming windows:
The first window has N = 64 and is symmetric.
The second window has N = 63 and is periodic.
Display the two windows.
Hs = sigwin.hamming(64,'symmetric'); Hp = sigwin.hamming(63,'periodic')
Hp = Name: 'Hamming' SamplingFlag: 'periodic' Length: 63
wvt = wvtool(Hs,Hp); legend(wvt.CurrentAxes,'Symmetric','Periodic')
Generate a symmetric Hamming window with N = 16. Return the window values as a column vector. Show information about the window object. Display the window.
H = sigwin.hamming(16); win = generate(H)
win = 16×1
0.0800
0.1198
0.2322
0.3979
0.5881
0.7700
0.9121
0.9899
0.9899
0.9121
⋮
wininfo = info(H)
wininfo = 4x26 char array
'Hamming Window '
'-------------- '
'Length : 16 '
'Sampling Flag : symmetric'
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)