Question

Using Matlab, Design a High-Pass Filter (HPF) using with a cutoff frequency of 500Hz when used...

  1. Using Matlab, Design a High-Pass Filter (HPF) using with a cutoff frequency of 500Hz when used with a sampling frequency of 1500Hz.
  • Compare designs using an order-8 IIR elliptic filter to an order-32 FIR filter by plotting the magnitude of the two designs on the same plot.

Homework Answers

Answer #1

MATLAB script:


clc;close all;clear all;
%specifications for HPF
Fs=1500;%sampling frequency
%cut offf frequency
wp=2*500/Fs;
%Elliptic Filter design for order 8
Rp=1;Rs=60;%Assumption
%elliptic returns 2n order transfer function.
% Hence enter order =4 for 8th order filter
[b,a] = ellip(4,Rp,Rs,wp,'high');
w=0:pi/1000:pi
H1=freqz(b,a,w);
%Elliptic Filter design for order 32
[b,a] = ellip(16,Rp,Rs,wp,'high');
H2=freqz(b,a,w);
figure;
subplot(211)
plot(w/pi,(abs(H1)),'r','LineWidth',3);hold on;grid on;
plot(w/pi,(abs(H2)),'g','LineWidth',3);hold off;
legend('Elliptic for order 8','Elliptic for order 32')
xlabel('w X pi')
ylabel('|H(w)|')
title('Magnitude plot')


subplot(212)
plot(w/pi,20*log10(abs(H1)),'r','LineWidth',3);hold on;grid on;
plot(w/pi,20*log10(abs(H2)),'g','LineWidth',3);hold off;
legend('Elliptic for order 8','Elliptic for order 32')
xlabel('w X pi')
ylabel('|H(w)| in db')
title('Log Magnitude plot')

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Calculate the FIR LPF with a cutoff frequency of 1 kHz using MATLAB (sampling frequency 20...
Calculate the FIR LPF with a cutoff frequency of 1 kHz using MATLAB (sampling frequency 20 kHz, filter order 10) and output the frequency response curve Calculate the FIR band pass filter passing only 1kHz-9kHz using MATLAB (sampling frequency 20kHz, filter degree 20) and output the frequency response curve.
Design an active high pass filter with a high frequency gain of 5 and a cutoff...
Design an active high pass filter with a high frequency gain of 5 and a cutoff frequency of 2kHz. Use a 0.1 uF capacitor in your design.
Design a passive RC high pass filter with a cutoff frequency of 470 Hz using a...
Design a passive RC high pass filter with a cutoff frequency of 470 Hz using a 270 pF capacitor. What is the value of the resistor? Express your answer with the appropriate units. What is the transfer function of the filter? Express your answer in terms of the variables R, C, and s. If the filter is loaded with a resistor whose value is the same as the resistor in part B, what is the transfer function of this loaded...
PLEASE ANSWER QUESTION #2 Design an FIR band-pass filter with cutoff frequencies of π/ 4 and...
PLEASE ANSWER QUESTION #2 Design an FIR band-pass filter with cutoff frequencies of π/ 4 and π/ 6 . The filter’s impulse response should have 81 samples (i.e. N = 81). Use a Blackman filter window. (a) Plot the filter’s impulse response (b) Plot the magnitude of the filter’s frequency response, in dB. (i.e. 20 log(|H(e jω)|)) (c) Print out the MATLAB code used in the filter design 2. Use the filter designed in #1 to filter a random input...
Design a high-pass filter, maximally flat lumped-element filter having a cutoff at 4 GHz, and an...
Design a high-pass filter, maximally flat lumped-element filter having a cutoff at 4 GHz, and an attenuation of at least 20 dB at 3.5 GHz. The characteristic impedance is 50 Ω. (ii) Simulate your design in ADS to plot the insertion loss versus frequency.
MATLAB FIR filter design. The audio file, covering the frequency range of roughly 0 to 3000...
MATLAB FIR filter design. The audio file, covering the frequency range of roughly 0 to 3000 Hz, is very badly corrupted with high?level noise. Your problem is to design a digital filter that will sufficiently attenuate the noise so that the audio speech is intelligible. (sorry but chegg doesn't allow me to attach the wav file) Here is the design template: clear, clc % clear all variables %% Read in the noisy audio signal from the file 'CapnJ.wav' using audioread...
MATLAB. Design your own low-pass shelving filter which can boost the low frequency of given music...
MATLAB. Design your own low-pass shelving filter which can boost the low frequency of given music signal. After designing filter, apply the filter to the original music signal and observe the result. Include following plots. A. Magnitude and phase plot of your filter. B. Magnitude plot of original signal C. Magnitude plot of filtered signal
Design and draw a simple electrical circuit (a combination of a low-pass and a high-pass filter...
Design and draw a simple electrical circuit (a combination of a low-pass and a high-pass filter circuits) that will act as a bandpass filter for frequencies between 0.1 and 100 rad/s. Generate the magnitude Bode plot on matlab!!! Please do the matlab! thank you!
Draw the circuit of second order low pass Butterworth filter and design it at a high...
Draw the circuit of second order low pass Butterworth filter and design it at a high cutoff frequency of 1KHz. Draw the frequency response of the designed filter.
Draw the circuit of second order low pass Butterworth filter and design it at a high...
Draw the circuit of second order low pass Butterworth filter and design it at a high cutoff frequency of 1KHz. Draw the frequency response of the designed filter.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT