Professional Documents
Culture Documents
TITLE: To study and analyze the stability of a system using polar plot Matlab/Scilab
AIM: : Stability Analysis of a system from its Polar Plot using SCILAB / MATLAB simulation
OUTCOME: Student will be able to plot the Polar plot for a given system
Procedure:
1. Measure gain margin and phase margin as obtained on the semi-log paper
2. Verification of gain margin and phase margin for the following systems using
SCILAB / MATLAB for the Closed loop system having open loop transfer function G(s) H(s)
Observations:
18/(S+1)
(S+2)
(S+3)
4 Type 1 Theoretical Magnitude ∞ 0 - - - -
,order 2 :
system
G(S)H(S Phase: -90 -180
)
=1/S(S+ Practical ∞ 83.69 0.33 ∞
3)
Theoretical Calculations:
Practical Calculations:
1. Code
2. clc;
3. clear all;
4. close all;
5. num = [8];
6. den = [0 1 4];
7. sys = tf(num,den)
8. nyquist(sys);
9. [GM,PM,wpc,wgc]=margin(sys);
10. disp('Gain margin in linear scale=');
11. disp(GM);
12. disp('Gain margin in dB=');
13. disp(20*log10(GM));
14. disp('Phase margin=');
15. disp(PM);
16. disp('Gain crossover frequency=');
17. disp(wgc);
18. disp('Phase crossover frequency=');
19. disp(wpc);
Output:
2. Code
Department of Electronics and Telecommunication Engineering
clc;
clear all;
close all;
num = [20];
den = [1 7 10];
sys = tf(num,den)
nyquist(sys);
[GM,PM,wpc,wgc]=margin(sys);
disp('Gain margin in linear scale=');
disp(GM);
disp('Gain margin in dB=');
disp(20*log10(GM));
disp('Phase margin=');
disp(PM);
disp('Gain crossover frequency=');
disp(wgc);
disp('Phase crossover frequency=');
disp(wpc);
Output:
3. Code
clc;
Department of Electronics and Telecommunication Engineering
clear all;
close all;
num = [18];
den = [1 6 11 6];
sys = tf(num,den)
nyquist(sys);
[GM,PM,wpc,wgc]=margin(sys);
disp('Gain margin in linear scale=');
disp(GM);
disp('Gain margin in dB=');
disp(20*log10(GM));
disp('Phase margin=');
disp(PM);
disp('Gain crossover frequency=');
disp(wgc);
disp('Phase crossover frequency=');
disp(wpc);
Output:
4. Code
clc;
clear all;
close all;
Department of Electronics and Telecommunication Engineering
num = [1];
den = [1 3 0];
sys = tf(num,den)
nyquist(sys);
[GM,PM,wpc,wgc]=margin(sys);
disp('Gain margin in linear scale=');
disp(GM);
disp('Gain margin in dB=');
disp(20*log10(GM));
disp('Phase margin=');
disp(PM);
disp('Gain crossover frequency=');
disp(wgc);
disp('Phase crossover frequency=');
disp(wpc);
Output:
5. Code:
clc;
clear all;
close all;
Department of Electronics and Telecommunication Engineering
num = [10];
den = conv([1 6 0],[0 1 -4]);
sys = tf(num,den)
nyquist(sys);
[GM,PM,wpc,wgc]=margin(sys);
disp('Gain margin in linear scale=');
disp(GM);
disp('Gain margin in dB=');
disp(20*log10(GM));
disp('Phase margin=');
disp(PM);
disp('Gain crossover frequency=');
disp(wgc);
disp('Phase crossover frequency=');
disp(wpc);
Output:
Conclusion:
In this experiment we have understand about the polar plot for various type and order of
system. Different types and orders of polar plots were performed theoretically and practically
Department of Electronics and Telecommunication Engineering
on Matlab and observed GM, PM, wgc, wpc and checked their Stability.Polar plots are
simple process to check the stability of the system. However they are not the preferred choice
when the system has poles on the right half of s plane. Therefore we can use Nyquist plots
which are the extension of polar plots.
Questions
The system is stable if the (-1,0) point is not enclosed by polar plot.
2) The stability of the control system in polar plot based on the relation between the gain
margin and the phase margin is as follows:
If the gain margin GM is greater than one and the phase margin PM is positive, then the control
system is stable.
If the gain margin GM is equal to one and the phase margin PM is zero degrees, then the
control system is marginally stable.
If the gain margin GM is less than one and / or the phase margin PM is negative, then the
control system is unstable.
3) The stability of the control system in polar plot based on the relation between phase cross
over frequency and gain cross over frequency is as follows:
If the phase cross over frequency ωpc is greater than the gain cross over frequency ωgc, then
the control system is stable.
If the phase cross over frequency ωpc is equal to the gain cross over frequency ωgc, then the
control system is marginally stable.
If phase cross over frequency ωpc is less than gain cross over frequency ωgc, then the control
system is unstable