Sie sind auf Seite 1von 4

Objective :

In todays lab the objective will be to understand the effect of poles and zeros on the
magnitude and phase responses of a system using MATLAB.

Code:
Fore All Zero Mode
z1=[1 0.1];
z2=[1 0.5];
z3=[1 1];
z4=[1 2];
z5=[1 5];
a=1;
% (a)
figure
% when a=0.1
freqz(z1,a);
title('when a=0.1')
% when a=0.1
figure
freqz(z2,a);
title('when a=0.5')
% when a=0.1
figure
freqz(z3,a);
title('when a=1')
% when a=0.1
figure
freqz(z4,a);
title('when a=2')
% when a=0.1
figure
freqz(z5,a);
title('when a=5')
% when a=0.9 and angle= 0,90,180;
b1=[1 0.9];
b2=[1 0.9j];
b3=[1 -0.9];

a=1;
figure
% when angle=0
freqz(b1,a);
title('when angle=0')
% when angle=90
figure
freqz(b2,a);
title('when angle=90')
% when angle=180
figure
freqz(b3,a);
title('when angle=180')

Output

Anylses:- we see the effect of changing the value of a and see that
when value of a is increasing then signal amlitude also increase.

when we change the value of angle then magnitude responce is maximum at


that angle and frequency responce is zero at that angle .

Code:-

when pole mode

z1=[1 0.1];
z2=[1 0.5];
z3=[1 1];
z4=[1 2];
z5=[1 5];
a=1;
% (a)
figure
% when a=0.1
freqz(a,z1);
title('when a=0.1')
% when a=0.1
figure
freqz(a,z2);
title('when a=0.5')
% when a=0.1
figure
freqz(a,z3);
title('when a=1')
% when a=0.1
figure
freqz(a,z4);
title('when a=2')
% when a=0.1
figure
freqz(a,z4);
title('when a=5')
% when a=0.9 and angle= 0,90,180;
b1=[1 0.9];
b2=[1 0.9j];
b3=[1 -0.9];

a=1;
figure
% when angle=0
freqz(a,b1);
title('when angle=0')
% when angle=90
figure
freqz(a,b2);
title('when angle=90')
% when angle=180
figure
freqz(a,b3);
title('when angle=180')

Output:-

Anylisis:-

Anylses:- we see the effect of changing the value of a and see that
when value of a is increasing then signal amlitude also dicrease.

when we change the value of angle then magnitude responce is minmum at


that angle and frequency responce is maximum peak at that angle .

Question:
Q1:
What is the difference between the phase of All Pole and All Zero Model?
Ans: phase is inverse of each other.
Q2:
What is the effect of the value of angle on the magnitude response and phase response of an
All Pole and an All Zero system?
Ans: in magnitude responce magnitude is incresing and
frequency responce have zero at that angle and arround
have positive slope
Q3:
What is the effect of the value of a on the magnitude response and the phase response of an
All Pole and an All Zero system
Ans:when change the value of q then magnitude is
increasing and phase become linear nagative slope.
Conclussion: from this lab we understand the effect of poles and
zeros on the magnitude and phase responses of a system using MATLAB.we see that at
diffrent position of pole and zero frequency and magnitude responce is diffrent.

Das könnte Ihnen auch gefallen