Part a):
MATLAB Code:
M1 = 2500;
M2 = 320;
K1 = 80000;
K2 = 500000;
b1 = 350;
b2 = 20000;
s = tf('s');
G1 =
((M1+M2)*s^2+b2*s+K2)/((M1*s^2+b1*s+K1)*(M2*s^2+(b1+b2)*s+
(K1+K2))-(b1*s+K1)*(b1*s+K1));
G2 = (-M1*b2*s^3-
M1*K2*s^2)/((M1*s^2+b1*s+K1)*(M2*s^2+(b1+b2)*s+(K1+K2))-
(b1*s+K1)*(b1*s+K1));
stepinfo(G2)
S1=-.11+5.25i
S2=.11-5.25
Part b):
MATLAB Code:
M1 = 2500;
M2 = 320;
K1 = 80000;
K2 = 300000;
b1 = 350;
b2 = 20000;
s = tf('s');
G1 =
((M1+M2)*s^2+b2*s+K2)/((M1*s^2+b1*s+K1)*(M2*s^2+(b1+b2)*s+
(K1+K2))-(b1*s+K1)*(b1*s+K1));
G2 = (-M1*b2*s^3-
M1*K2*s^2)/((M1*s^2+b1*s+K1)*(M2*s^2+(b1+b2)*s+(K1+K2))-
(b1*s+K1)*(b1*s+K1));
stepinfo(G2)
S1=-.219+5.05i
S2=-.219-5.05i
Part c):
Poles for K2=300000 are:
S 1,2 =-0.219±5.05i
S 3,4 =-31.6±13.2i
S 1,2 =-0.128±5.26i
S 3,4 =-31.7±28.3i
Incremental updates in K2 between the range of 300000 to 500000 show that the poles from moving
300000 to 500000 the poles S3,4 moves away from the real axis but the poles S 1,2 does also show some
slight movements.
PZ PLOT at K2=400000
PZ PLOT for K2=4500000:
Part d):
MALTAB Code:
clc
clear all
close all
M1 = 2500;
M2 = 320;
K1 = 80000;
K2 = 500000;
b1 = 350;
b2 = 20000;
s = tf('s');
for K2=300000:50000:500000
G1 =
((M1+M2)*s^2+b2*s+K2)/((M1*s^2+b1*s+K1)*(M2*s^2+(b1+b2)*s+
(K1+K2))-(b1*s+K1)*(b1*s+K1));
G2 = (-M1*b2*s^3-
M1*K2*s^2)/((M1*s^2+b1*s+K1)*(M2*s^2+(b1+b2)*s+(K1+K2))-
(b1*s+K1)*(b1*s+K1));
st=stepinfo(G2)
Ts=st.SettlingTime
end
Kvalue=[300000 350000 400000 450000 500000]
SetTime=[16.84 20.26 23.13 25.95 28.74]
stem(SetTime,Kvalue)
ylabel('K2 Values ')
xlabel('Ts values')
Output:
clc
clear all
close all
syms s
num=[1];
den=[1 1 100];
fun=tf(num,den);
Part a):
The transfer function of the given system is given below:
2pwn=c=2*0.05*10=1
𝑤𝑛2 =k=100
Phase= -0.589
Magnitude=40db
2):
Phase=-22.6
Magnitude=-20.3db
3):
Phase=-180
Magnitude=-79.1
Part c):
Simulink Model:
Output:
For sin(t):
For sin(10t):
For sin(100t):
Simulink Results and Bode plot results show approximately same values for phase and magnitude.
Task 3:
Part a):
Settling time=6sec
P=.8
wn=.833
MATLAB Code:
clc
clear all
close all
num=[.694];
den=[1 1.33 .694];
pzmap(tf(num,den))
Part b):
Largest Damping Frequency is .97 where ts=6sec.
clc
clear all
close all
num=[1];
den=[1 1.8 1];
pzmap(tf(num,den))
stepinfo(tf(num,den))
Output:
Lowest Ts using wn as identity I have calculated as 4.4sec which is approximately equal to the matlab
calculation.