« View all new features in
Mathematica
9
◄
previous
|
next
►
New in
Mathematica
9
›
Built-in Signal Processing
Magnitude Response of a Multi-band Equiripple Filter
Create an equiripple filter with two pass bands at
and
, with different levels of attenuation in the stop bands, and plot its magnitude response.
In[1]:=
X
h = EquirippleFilterKernel[{{{0, 0.05}, {0.1, 0.15}, {0.18, 0.25}, {0.3, 0.36}, {0.41, 0.5}} 2 \[Pi], {0., 1., 0., 1., 0.}, {10., 1., 3., 1., 20.}}, 55];
In[2]:=
X
Plot[20 Log[10, Abs[ListFourierSequenceTransform[h, \[Omega]]]], {\[Omega], 0, \[Pi]}, PlotRange -> All]
Out[2]=