Question

Create a MATLAB script with the following specifications: An IIR high-pass filter that has the magnitude...

Create a MATLAB script with the following specifications:

An IIR high-pass filter that has the magnitude response below 0.2 for frequencies 0-60 Hz, and the magnitude response between 0.8 and 1.2 for frequencies between ?144 − XY? Hz and 200 Hz.

Sampling frequency is 400Hz.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

MATLAB code is given below in bold letters.

clc;
close all;
clear all;

% define sampling frequency
fs = 400; % 400 Hz

% define fc
fc = 100; % 100 Hz

% define the filter characteristics
Wp = 144/fs/2;
Ws = 60/fs/2;
Rp = -20*log10(1-0.2);% passband ripple
Rs = -20*log10(0.2);% stopband attenuation


% obtain the required order of the butterworth filter for the given requirements.
N = buttord(Wp, Ws, Rp, Rs);


% obtain the filter coefficients
[b,a] = butter(N,0.5,'high')

% plot the frequency response
figure;
freqz(b,a);

RESULT:

The filter coefficients are given below


b =

0.1667 -0.5000 0.5000 -0.1667


a =

1.0000 -0.0000 0.3333 -0.0000

The frequency reponse is plotted below.

Add a comment
Know the answer?
Add Answer to:
Create a MATLAB script with the following specifications: An IIR high-pass filter that has the magnitude...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Design lowpass IIR filter with the following specifications: Filter order = 2, Butterworth type C...

    Design lowpass IIR filter with the following specifications: Filter order = 2, Butterworth type Cut-off frequency=800 Hz Sampling rate =8000 Hz Design using the bilinear z-transform design method Print the lowpass IIR filter coefficients and plot the frequency responses using MATLAB. MATLAB>>freqz(bLP,aLP,512,8000); axis([0 4000 –40 1]); Label and print your graph. What is the filter gain at the cut-off frequency 800 Hz? What are the filter gains for the stopband at 2000 Hz and the passband at 50 Hz based...

  • A digital low pass IIR filter is to be designed with Butterworth approximation using the Bilinear transformation

    A digital low pass IIR filter is to be designed with Butterworth approximation using the Bilinear transformation technique having the following specifications:(i)             Passband magnitude is constant within 1 dB for frequencies below 0.2 π.(ii)           Stopband attenuation is greater than 15 dB for frequencies between 0.3 π to π. Determine the order of the filter, cutoff frequency, poles location and transfer function of digital filter in order to meet the above specifications.     

  • Using filterDesigner in MATLAB, design a second order low pass IIR Butterworth filter whose sampling frequency...

    Using filterDesigner in MATLAB, design a second order low pass IIR Butterworth filter whose sampling frequency (Fs) is 1 kHz and cutoff frequency (Fc) is 10 Hz. Find the numerator and denominator coefficients. Write its transfer function H(z) = Y(z) / X(z). Write its difference function y(k). Draw (copy from Filter Designer) the magnitude response plot. Draw (copy from Filter Designer) the phase response plot. Draw (copy from Filter Designer) the impulse response plot.

  • Using filterDesigner in MATLAB, design a second order low pass IIR Butterworth filter whose sampling frequency (Fs) is 1...

    Using filterDesigner in MATLAB, design a second order low pass IIR Butterworth filter whose sampling frequency (Fs) is 1 kHz and cutoff frequency (Fc) is 10 Hz. Find the numerator and denominator coefficients. Write its transfer function H(z) = Y(z) / X(z). Write its difference function y(k). Draw (copy from Filter Designer) the magnitude response plot. Draw (copy from Filter Designer) the phase response plot. Draw (copy from Filter Designer) the impulse response plot.

  • For each of the following specifications, use built-in MATLAB functions to design two or more different filters and display their magnitude responses. Also state what their implementation costs are (n...

    For each of the following specifications, use built-in MATLAB functions to design two or more different filters and display their magnitude responses. Also state what their implementation costs are (number of additions and multiplications per sample). Assume a sampling rate of 1000 sps - Low-pass filter with cutoff frequency 300 Hz. - High-pass filter with cutoff frequency 300 Hz. - Band-pass filter with cutoff frequencies 50 and 150 Hz. - Band-reject filter with cutoff frequencies 50 and 150 Hz.

  • An IIR low-pass filter is to be designed to meet the following specifications:

    An IIR low-pass filter is to be designed to meet the following specifications: 1. Passband cutoff  frequency of 0.22 π with a passband ripple less than 0.01.2. Stopband cutoff frequency of 0.24 π with a stopband attenuation greater than 40 dB.(i) Determine the filter order required to meet these specifications if a digital butterworth filter is designed using the bilinear transformation. (ii) Determine the filter order required to meet these specifications if a digital chebyshev filter is designed using the bilinear transformation. 

  • Design a second order IIR Butterworth low pass digital filter with a cutoff frequency of 500...

    Design a second order IIR Butterworth low pass digital filter with a cutoff frequency of 500 Hz and a sampling frequency of 10,000 Hz using bilinear transformation then find the following:                               The output (response) due to the following inputs:             Sinusoidal signal with a frequency of 100Hz.             Sinusoidal signal with a frequency of 500Hz.             Sinusoidal signal with a frequency of 2000Hz.       Repeat (a) above for a 6thorder Butterworth filter

  • 6. MATLAB problem: A filter has the following specifications: Pass band edge = 0.3π. Stop band...

    6. MATLAB problem: A filter has the following specifications: Pass band edge = 0.3π. Stop band edge = 0.5π. 20log10(?????????=?????) = - 40 dB. Design this filter using various IIR and FIR methods using MATLAB. Make a "brief" statement comparing the designs.

  • Use MATLAB to design your IIR filter. Display the results of: Frequency response Magnitude response Phase...

    Use MATLAB to design your IIR filter. Display the results of: Frequency response Magnitude response Phase response Etc. discuss their strength and weaknesses.

  • Using the windowing functions discussed in class, design a low-pass FIR filter with a cutoff freq...

    Using the windowing functions discussed in class, design a low-pass FIR filter with a cutoff frequency of 2 kHz, a minimum stop band attenuation of 40 dB, and a transition width of 200Hz. The sampling frequency is 10kHz. 1. Using the windowing functions discussed in class, design a low-pass FIR filter with a cutoff frequency of 2 kHz, a minimum stop band attenuation of 40 dB, and a transition width of 200 Hz. The sampling frequency is 10 kHz 2....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT