« View all new features in
Mathematica
9
◄
previous
|
next
►
New in
Mathematica
9
›
Built-in Signal Processing
Magnitude Response of Selected Windows
Compare the Fourier transform of the window functions.
In[1]:=
X
windows = {DirichletWindow, BartlettWindow, KaiserWindow, HannWindow, HammingWindow, BlackmanWindow}; f = Table[FourierTransform[win[x], x, w], {win, windows}];
In[2]:=
X
Partition[ MapThread[ LogLinearPlot[ Evaluate[20 Log[10, #/Limit[#, w -> 0]]], {w, .1, 100}, GridLines -> Automatic, PlotRange -> {Automatic, {0, -80}}, PlotStyle -> Thick, PlotLabel -> #2] &, {f, windows}], 3] // Grid
Out[2]=