You are on page 1of 9

1.

//AMARJEET
clc
clear
t=0:0.015:15
s=%s
wn2=9
p1=s^2+9*s+9
overdamped_system=syslin('c' ,wn2/p1)
y1=csim('step' ,t, overdamped_system)
subplot(221)
plot(t,y1, 'black')
title('overdamped_system')

2. //AMARJEET
clc
clear
t=0:0.015:15
s=%s
wn2=9
p1=s^2+9
undamped_system=syslin('c' ,wn2/p1)
y1=csim('step' ,t, undamped_system)
subplot(221)
plot(t,y1, 'black')
title('undamped_system')

3. //AMARJEET
clc
clear
t=0:0.015:15
s=%s
wn2=9
p1=s^2+2*s+9
underdamped_system=syslin('c' ,wn2/p1)
y1=csim('step' ,t, underdamped_system)
subplot(221)
plot(t,y1, 'black')
title('underdamped_system')
4’//AMARJEET
clc
clear
t=0:0.015:15
s=%s
wn2=9
p1=s^2+6*s+9
cryticallydamped_system=syslin('c' ,wn2/p1)
y1=csim('step' ,t, cryticallydamped_system)
subplot(221)
plot(t,y1, 'black')
title('criticallyrdamped_system')
5. //AMARJEET
clc
clear
s=%s
numerator=poly([1 22 122],'s',"coeff")
denominator=poly([1 14 40],'s',"coeff")
TF=syslin('c',numerator,denominator)

6. //AMARJEET
s=%s
num=poly([-1,-2],'s',"roots")
den=poly([-3,-4],'s',"roots")
T_F=syslin('c',num,den)
7. //AMARJEET
clc
clear
zero_1=[-1,-5];
pole_1=[0,-3,-4,-7];
k=5;
zero_pole_gain=zpk(zero_1,pole_1,k,"c")

8. //AMARJEET
clc
clear
zero_1=[-1,-5];
pole_1=[0,-3,-4,-7];
k=5;
zero_pole_gain=zpk(zero_1,pole_1,k,"c")
T_F=zpk2tf(zero_pole_gain)
9. //AMARJEET
//GIVEN
DATA V1=230
N1=870
Ia=100
Ra=0.05
T=400
Eb=V1-Ia*Ra
Vgen=V1+Ia*Ra
N2=N1*Vgen/Eb
disp(N2,"speed in RPM :")

10. //amarjeet
clc
clear
t=0;0.01,15
s=%s
num=poly([0 3],'s',"coeff")
den1=poly([-2],'s',"roots")
den2=poly([18 6 1],'s',"coeff")
den=den1*den2
Sys_Fun=syslin('c',num,den)
evans(Sys_Fun,10)
//sqrid()
11. //find the root locus of the system
//g(sH(s=k/s(s+2)(s+3) for k=1
clc
clear
t=0;0.01,15
s=%s
num=poly([1],'s',"coeff")
den1=poly([0 -1 -2],'s',"roots")
Sys_Fun=syslin('c',num,den1)
evans(Sys_Fun,10)
//sqrid()
12. //find the root locus of the system
//g(sH(s=k/s(s+3)(s^2+2s+2) for k=12
clc
clear
t=0;0.01,15
s=%s
k=12
num=poly([k],'s',"coeff")
den1=poly([-3],'s',"roots")
den2=poly([2,2,1],'s',"coeff")
den=den1*den2
Sys_Fun=syslin('c',num,den)
evans(Sys_Fun,10)
//sqrid()

13. //routh hurwitz satbility


s=%s
p=s^8+s^7+12*s^6+22*s^5+39*s^4+59*s^2+38*s+20
[routh_array,sign_changes]=routh_t(p)//variable of the routh array storedto routharry

//while the variable sign changes store thr number of dign changes
disp('Routh_Table')
disp(routh_array)
disp('the no. of sign changes are')
disp('sign_changes')
14. //generate th tf of the system
//S^2+22S+122/S^3+14S^2+40
clear
clc s=
%s
num=poly([1,22,112],'s',"coeff")
den=poly([1,14,0,40],'s',"coeff")
tf=syslin('c',num,den)

You might also like