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)
From
OR
OR