Professional Documents
Culture Documents
Pole
Pole
%
%
%
%
%
%
clear
clf
colordef(1,'black')
%
poles & zeros
Rp = 0.6;
thetap = 135;
thetap = thetap/180*pi;
pp = Rp*exp(j*thetap);
b = [1 0 ];
a = [ 1 -pp ];
zz = [0];
subplot(1,2,1);
zplane(b,a);
hold on
fprintf(1,'Figure 4.23: pole/zero plot - press return to continue\n')
pause
th = 0;
pt = exp( j*th/180*pi );
xx = real(pt);
yy = imag(pt);
l1 = line('Xdata',xx,'Ydata',yy);
set(l1,'Color','w','Marker','o','EraseMode','xor');
l2 = line('Xdata', real ([ pt pp(1)] ),'Ydata',imag([ pt pp(1)]),'Color','g','Li
neStyle','-','EraseMode','xor');
l4 = line('Xdata', real ([ pt zz(1)] ),'Ydata',imag([ pt zz(1)]),'Color','b','Li
neStyle','-','EraseMode','xor');
l6 = line('Xdata', real ([ 0 pt ] ),'Ydata',imag([0 pt ]),'Color','r','LineStyle
','-','EraseMode','xor');
M = 128;
[hh,w] = freqz(b,a,2*M,'whole');
%h = 10*log10(abs(hh));
h = abs(hh);
ang = unwrap(angle(hh))/pi*180;
angmax = max(ang);
angmin = min(ang);
maxh = max(h);
if min(h) < 0
minh = min(h);
else
minh = 0;
end
w = w/pi/2;
subplot(2,2,2)
xx = [ w(1) w(1) ];
yy = [ h(1) h(1) ];