Question

In: Electrical Engineering

Algorithm Enter the pass band ripple (rp) and stop band ripple (rs). Enter the pass band...

Algorithm

  1. Enter the pass band ripple (rp) and stop band ripple (rs).
  2. Enter the pass band frequency (wp) and stop band frequency (ws).
  3. Get the sampling frequency (fs).
  4. Calculate normalized pass band frequency, and normalized stop band frequency w1 and w2 respectively.           

w1 = 2 * wp /fs            

w2 = 2 * ws /fs

  1. Make use of the following function to calculate order of filter

Butterworth filter order                       

[n,wn]=buttord(w1,w2,rp,rs)

  1. Design an nth order digital lowpass Butterworth filter using the following statements. Butterworth filter [b, a]=butter (n, wn)

OR

Design an nth order digital high pass Butterworth filter using the following statement. Butterworth filter [b,a]=butter (n, wn,’high’)

  1. Find the digital frequency response of the filter by using ‘freqz( )’ function

[H,w]=freqz(b,a,512,fs)

  1. Calculate the magnitude of the frequency response in decibels (dB)

mag=20*log10 (abs (H))

  1. Plot the magnitude response [magnitude in dBversus normalized frequency (Hz)]
  2. Calculate the phase response using an = angle (H)
  3. Plot the phase response [phase in radians Vs normalized frequency (Hz)]

Program

Output

Solutions

Expert Solution


Related Solutions

1) a) Give daily examples of low pass, high pass, band pass and band stop filters....
1) a) Give daily examples of low pass, high pass, band pass and band stop filters. b) Design 4 filter circuits with active circuit elements .(design according to the frequencies below.) Low Pass Filter Working circuit frequency (highest limit) = 5 kHz High-pass Filter Operating frequency of the circuit(lowest) = 5 kHz Band pass Filter Working circuit Frequency range = 5kHz-15kHz Band stop Filter Working circuit Frequency range = 5kHz-15kHz c) Prove that the output of each filter provides the...
Give examples of 3 distinct types of filters (band pass, high pass, and low pass). Create...
Give examples of 3 distinct types of filters (band pass, high pass, and low pass). Create a diagram and a statement of the characteristic frequency scale of each in terms of the component values in the circuit.
ı need an explanation filter types sound related ( low-pass, high pass, bandpass, band reject) but...
ı need an explanation filter types sound related ( low-pass, high pass, bandpass, band reject) but what ı need is not contactor projection, more written explanation
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.
Consider the noncoherent receiver consists of two paths; the band-pass filter in the top path is...
Consider the noncoherent receiver consists of two paths; the band-pass filter in the top path is tuned to the carrier frequency representing symbol 1, and the band-pass filter in the lower path is tuned to the alternative carrier frequency representing symbol 0. These two filters are followed by a pair of energy-level detectors, whose outputs are applied to the comparator to recover the original binary data stream. Similarly, the noncoherent BFSK receiver is twice as complex as the noncoherent BASK...
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...
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?
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
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.
Write an Algorithm that asks the user to enter an address and print each part of...
Write an Algorithm that asks the user to enter an address and print each part of the address on a separate line. Example: Input 344 Rose Dr, Raeford, NC 28376 Output Street No.: 344 Street Name: Rose Dr City: Raeford State: North Carolina Zip Code: 28376 Hints: Deal with the address as a string. The address must contain two commas. The text before first comma contains the street number and street name separated by one or more white spaces. The...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT