
Design a Filter Using fdesign
3-3
Design a Filter Using fdesign
Use the following two steps to design a simple filter.
1
Create a filter specification object.
2
Design your filter.
Design a Filter in Two Steps
Assume that you want to design a bandpass filter. Typically a bandpass filter is defined
as shown in the following figure.
In this example, a sampling frequency of Fs = 48 kHz is used. This bandpass filter has
the following specifications, specified here using MATLAB code:
A_stop1 = 60; % Attenuation in the first stopband = 60 dB
F_stop1 = 8400; % Edge of the stopband = 8400 Hz
F_pass1 = 10800; % Edge of the passband = 10800 Hz
F_pass2 = 15600; % Closing edge of the passband = 15600 Hz
F_stop2 = 18000; % Edge of the second stopband = 18000 Hz
A_stop2 = 60; % Attenuation in the second stopband = 60 dB
A_pass = 1; % Amount of ripple allowed in the passband = 1 dB
In the following two steps, these specifications are passed to the fdesign.bandpass
method as parameters.
Step 1
Commentaires sur ces manuels