Search This Blog

Monday 30 March 2020

Scilab Prog: To study of effect of addition of zeros and poles to the forward path transfer function of a closed loop system


clc;
clf;
s=%s;
T=syslin('c',1,s+1);//Transfer function of a closed loop system.
P=syslin('c',1,s+2);// A pole at s=-2.
Tf=T*P;// Addition of a pole at s=-2 to the transfer function.
t=0:0.1:10;
Y1=csim('impulse',t,Tf);
Z=syslin('c',s,1);// A zero at s=0.
Tf1=T*Z;// Addition of a zero at s=0 to the transfer function.
Y2=csim('impulse',t,Tf1);
subplot(231);
plzr(T);
subplot(232);
plzr(Tf);
subplot(233);
plzr(Tf1);
subplot(234);
title('Addition of pole at s=-2 to the tf=1/(s+1)','fontsize',3);
plot(t,Y1);
xlabel('t','fontsize',3);
ylabel('Y(t)','fontsize',3);
subplot(235);
title('Addition of zero at s=0 to the tf=1/(s+1)','fontsize',3);
plot(t,Y2);
xlabel('t','fontsize',3);
ylabel('Y(t)','fontsize',3);


Note : Students are advised to write discussion yourself i.e. what are you getting information from the plots.

No comments:

Post a Comment