Testbench for IIR filter

4 views (last 30 days)
Jim on 28 Sep 2011
I need to write a testbench(a function)in Matlab that verifies the specified amplitude- and phase transfer functions of calculated IIR filter.
I have to use this testbench(function)in the design of Bandpass and lowpass IIR filters
Can anyone suggest me something about this
Thanks in advance
  1 Comment
Honglei Chen
Honglei Chen on 28 Sep 2011
Hi Vivek,
What's the difference between this question and your earlier question linked below?

Sign in to comment.

Answers (1)

Wayne King
Wayne King on 28 Sep 2011
Hi Vivek, I think Honglei commented on this in another post. MATLAB has a number of filter analysis capabilities built in. For example, design a Butterworth lowpass filter for data sampled at 1 kHz.
d = fdesign.lowpass('N,F3dB',10,100,1e3);
Hd = design(d,'butter');
% Get the frequency response in 1-Hz increments around the
% unit circle
[H,W] = freqz(Hd,1e3,1e3,'whole');
Get the frequency response at 100-Hz
  1 Comment
Wayne King
Wayne King on 28 Sep 2011
Additionally, if you have the DSP System Toolbox, you can use measure()

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!