Question

In: Electrical Engineering

Q7.1    The normalized passband edge angular frequency Wp is - 0.2    The normalized stopband...

Q7.1    The normalized passband edge angular frequency Wp is - 0.2
   The normalized stopband edge angular frequency Ws is - 0.4
   The desired passband ripple Rp is - 0.5 dB
   The desired stopband ripple Rs is - 40 dB

In Matlab:

Q7.X1 Design a Butterworth lowpass filter satisfying the specifications in Q7.1. Plot the magnitude and phase responses. Also include magnified plots of passband and stopband showing how well the filter satisfies the design specifications.

Solutions

Expert Solution

Script:

clc;close all;clear all;
Wp =0.2
Ws =0.4
Rp=0.5;Rs=40;
%Butterworth filter
[N,wc]=buttord(Wp,Ws,Rp,Rs)
[b,a]=butter(N,wc)

%Frequency response
w=0:pi/1000:pi
H=freqz(b,a,w)

figure;
subplot(221)
plot(w/pi,20*log10(abs(H)),'LineWidth',3,'m')
xlabel('w X pi');grid;
ylabel('|H(exp(jw)|')
title('Magnitude response')


subplot(222)
plot(w/pi,angle(H),'LineWidth',3,'r')
xlabel('w X pi');grid;
ylabel('<H(exp(jw)>')
title('Phase response')


subplot(223)
plot(w/pi,20*log10(abs(H)),'LineWidth',3,'r')
xlabel('w X pi');grid;
ylabel('|H(exp(jw)|')
title('Magnified pass band')
xlim([0 0.2])
ylim([-20 2])

subplot(224)
plot(w/pi,20*log10(abs(H)),'LineWidth',3,'b')
xlabel('w X pi');grid;
ylabel('|H(exp(jw)|')
title('Magnified stop band')
xlim([0.4 1])
ylim([-500 0])

%stop band attenuation achieved from the design
Hdb=20*log10(abs(H))
Sdb=Hdb(find(w==0.4*pi))
Pdb=Hdb(find(w==0.2*pi))

Command window:

Sdb = -46.782
Pdb = -0.50000


Related Solutions

Q7.1    The normalized passband edge angular frequency Wp is - 0.2    The normalized stopband...
Q7.1    The normalized passband edge angular frequency Wp is - 0.2    The normalized stopband edge angular frequency Ws is - 0.4    The desired passband ripple Rp is - 0.5 dB    The desired stopband ripple Rs is - 40 dB In Matlab: Q7.X1 Design a fixed window FIR filter satisfying the specifications in Q7.1. Plot the magnitude and phase responses. Also include magnified plots of passband and stopband showing how well the filter satisfies the design specifications.
2. Design a digital lowpass filter to meet the following specifications: passband edge = 0:45π stopband...
2. Design a digital lowpass filter to meet the following specifications: passband edge = 0:45π stopband edge = 0:5π Rp = 0.5 dB, As = 60 dB a. Design a Buttterworth filter, you may use the butteworth and butter commands to implement. b. Design Chebyshev Type 1 filter ( use the equivalent commands to above ) c. Design an Elliptic filter ( use the equivalent commands to part a ). d. List the order of each filter and find the...
1. Design a bandpass filter to meet the following specificatoins: lower stopband edge = 0.3π upper...
1. Design a bandpass filter to meet the following specificatoins: lower stopband edge = 0.3π upper stopband edge = 0.6π lower passband edge = 0.4π upper passband edge = 0.5π Rp = 0.5 dB, As = 50 dB Use a sampling frequency of 1000 Hz. You may use MATLAB and the fir1 commmand to implement. It is advisable to check the MathWorks site for help on using these commands. It is advisable to check if the commands use the ripple...
Method A: Based on the frequency of a simple harmonic oscillator. The angular frequency of a...
Method A: Based on the frequency of a simple harmonic oscillator. The angular frequency of a mass on a spring is given by ω=(k/m)1/2ω=(k/m)1/2 where m is the mass and k is the spring constant. The period of a harmonic oscillator is T=2π/ωT=2π/ω . If you do a little math, you can get a formula for the spring constant in terms of the mass and the period. a) Design a procedure to measure the spring constant based on Method A...
How to find passband frequency from cut-off frequency without using MATLAB? Please show a numerical example.
How to find passband frequency from cut-off frequency without using MATLAB? Please show a numerical example.
The power supplied by a torque, ?, to rotate an object at angular frequency, ?, is...
The power supplied by a torque, ?, to rotate an object at angular frequency, ?, is P = ??. A common car engine produces ? = 3000Nm at ? = 3000 RPM (rotations per minute). Suppose you want to create an electric car that runs on a battery and electric motor. Typically, electric car motors utilize a current of 100A and have a cross sectional area of 0.5m2. Suppose also that the number of wire turns in the coil of...
a. State the difference between personal frequency and excitation frequency b. State the difference in angular...
a. State the difference between personal frequency and excitation frequency b. State the difference in angular frequency and linear frequency c. State the difference between transient response and steady state response d. Mention the different meanings of eigenvalue and eigenvector in the vibration equation e. Mention the difference between viscous and silencer d
An object is undergoing shm with the maximum displacement of 16 cm and an angular frequency...
An object is undergoing shm with the maximum displacement of 16 cm and an angular frequency of 0.040 s^-1 assume that at t= 0 it is at its maximum displacement at which of these times will it have its maximum speed a) 20 second b) 39 seconds C) 56 seconds D) 78 seconds e) 157 seconds PLEASE SHOW WORK CLEARLY
Drive the formula for the angular frequency of a mass attached to a horizontal spring exexuting...
Drive the formula for the angular frequency of a mass attached to a horizontal spring exexuting simple harmonic motion? Can anyone help me please?
Question 8 The allele frequency of R is 0.8 and r is 0.2. If the population...
Question 8 The allele frequency of R is 0.8 and r is 0.2. If the population is in Hardy-Weinberg equilibrium, what is the frequency of heterozygotes? a. 0.32 b. 0.26 c. 0.16 d. 0.48 Question 9 The transfer of an antibiotic resistant gene from one bacterial species to a different species is and example of A. genetic drift B. exon shuffling C. migration D. horizontal gene transfer Question 10 The allele frequencies for a population are A = 0.6 and...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT