Question

In: Electrical Engineering

4)Design a band-pass filter with a passband from 500 Hz to 2000 Hz using “butter” routine...

4)Design a band-pass filter with a passband from 500 Hz to 2000 Hz using “butter” routine of MATLAB. Assume a sampling frequency of 8KHz. Let the filter order be M=4. Plot the magnitude response and provide the filter coefficients and the transfer function

Solutions

Expert Solution


Fs=8000; % Sampling frequency
M=4; % Filter order
Fl=500; % Lower cutoff frequency
Fh=2000; % Upper cutoff frequency
freq_span=[Fl Fh];

%Bufferworth filter design using
[Z,P,K]= butter(M/2,freq_span/Fs,'bandpass');
[A,B,C,D]= butter(M/2,freq_span/Fs,'bandpass');
[b,a]=butter(M/2,freq_span/Fs,'bandpass');


sos = ss2sos(A,B,C,D);
fvt = fvtool(sos,'Fs',Fs); % Displaying magntitude response
legend(fvt,'butter');
sys=ss(A,B,C,D);
tf(sys) %displaying transfer function

disp('Filter coefficients are: ');
disp(b);
disp(a);

Transfer function =

0.0605 s^4 + 8.06e-17 s^3 - 0.121 s^2 + 7.388e-17 s + 0.0605
------------------------------------------------------------
s^4 - 2.944 s^3 + 3.428 s^2 - 1.904 s + 0.4359

Continuous-time transfer function.

Filter coefficients are:
0.0605 0 -0.1210 0 0.0605

1.0000 -2.9435 3.4276 -1.9038 0.4359


Related Solutions

Design a wide band pass filter with fL = 500 Hz, fH = 2kHz and a...
Design a wide band pass filter with fL = 500 Hz, fH = 2kHz and a pass band gain of 10.
Design a bandpass active filter to pass frequencies between 700 Hz and 2100 Hz, and with...
Design a bandpass active filter to pass frequencies between 700 Hz and 2100 Hz, and with K= 63. Please include the transfer function, blot plot, multisim, and the matlab code.
Design a second-order band-pass filter using resistors and capacitors for a microphone for a hearing aid,...
Design a second-order band-pass filter using resistors and capacitors for a microphone for a hearing aid, which allows signals in the range of 1 to 16 kHz to pass through. For the component values that you chose, at what frequency is the transfer function at a maximum?
Design an active low-pass filter with a gain of 10 and that can reject 120 Hz...
Design an active low-pass filter with a gain of 10 and that can reject 120 Hz signals. What are the parameters for this design? Please show all work. Thank you.
Design an active low pass filter with a corner frequency of 50 Hz and amplification of 10
 Design an active low pass filter with a corner frequency of 50 Hz and amplification of 10. Pick the values of the resistor and capacitor based on your own judgement to keep the cost reasonably low (simpler circuit design with less components is better).
Design a 4 th order band-pass, maximally flat lumped-element filter with center frequency 3 GHz and...
Design a 4 th order band-pass, maximally flat lumped-element filter with center frequency 3 GHz and 10% bandwidth. The characteristic impedance is 50 Ω. FR4 substrate εr = 4.4, d = 1.6 mm, and tan δ = 0.02, with copper conductors 17 μm thick.
a. Design a broadband Butterworth bandpass filter with a lower cutoff frequency of 500 Hz and...
a. Design a broadband Butterworth bandpass filter with a lower cutoff frequency of 500 Hz and an upper cutoff frequency of 4500 Hz. The passband gain of the filter is 20 dB. The gain should be down at least 15 dB at 200 Hz and 11.25 kHz. Use 20 nF capacitors in the high-pass circuit and 10 k\Omega resistors in the low-pass circuit. b) Draw a circuit diagram of the filter and label all the components.
Part 5 The frequency response of RLC circuits : Design a passive filter: Band Pass, ISM...
Part 5 The frequency response of RLC circuits : Design a passive filter: Band Pass, ISM Band 433.050 MHz to 434.790 MHz . Prepare a report to describe your design. Your results should include the following : i. Simulation of the designed filters by using any simulation software. ii. Attach a 1 kΩ resistor as a load to the initial design of your filter. Explain how the transfer function change. Does the type of filter change? Does the cut-off frequency...
In matlab using a RC low pass filter Create a 1 Hz input signal (with amplitude...
In matlab using a RC low pass filter Create a 1 Hz input signal (with amplitude of one). Corrupt the input signal with signals greater than or equal to 100 Hz and/or random noise. Use randn(length(v_in,1)) to test filter
Design a linear phase, minimum-length, band-pass FIR digital filter in MATLAB to meet the specifications listed...
Design a linear phase, minimum-length, band-pass FIR digital filter in MATLAB to meet the specifications listed below. Use Rectangular Windowing (MATLAB function: fir1) pass-band frequencies: f_p1 = 0.35, f_p2 = 0.65 stop-band frequencies: f_s1 = 0.10, f_s2 = 0.80 pass-band tolerance: d_p <= 0.1 stop-band tolerance: d_s <= 0.1 I am attempting to learn more about MATLAB and I am having trouble with specific filter design and it would be helpful to have an example.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT