Matlab Problem Plot Frequency Response Magnitude Phase Following Systems Determine Whether Q37249017

Matlab Problem :

Plot the frequency response (magnitude and phase) for the followingsystems. Determine whether the system has a lowpass or highpasscharacteristic.
(a) H1(jΩ) = 8 / (jΩ)3+4(jΩ)2+8jΩ+8 , for |Ω| ≤ π.
(b) H2(jΩ) = (jΩ)3 / (jΩ)3+2(jΩ)2+2jΩ+1 , for |Ω| ≤ π.
You cannot use any built-in functions to compute the magnitude northe phase. You have to do your own implementation.


Answer


w=0:0.1:pi
length(w)

j=1

% frequency from 0 to 3.14
for j=1:1:32
H(j) = 8 /( (w(j)*i)^3+4*(w(j)*i)^2+8*w(j)*i+8)
end
% finding magnitude
mag1=20*log10(abs(H))
% angle
phase=angle(H)

subplot(1,2,1)
plot(w,mag1)
subplot(1,2,2)
plot(w,phase)

Figure 1 ile Edit View Inset Tools Desktop Window Help -8 10 -3 2śctivatesWindos5 1.5 0.5 12 3.5 2.5 Go to Sellings to acliva

From

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.