Anda di halaman 1dari 12

Task 1:

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)

This is the stepinfo of the G2 function of the given system.

I assume the dominant pole to be:

S1=-.11+5.25i
S2=.11-5.25

Settling time= 4/wnp = 4/.11 = 36.36 (Calculated)

Approximately equal to the settling time given by the stepinfo command.

Dominant poles are assumed by seeing the pzmap of G2.

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)

This is the stepinfo of the G2 function of the given system.


I assume the dominant pole to be:

S1=-.219+5.05i

S2=-.219-5.05i

Settling time= 4/wnp = 4/.219 = 18.26 (Calculated)

Approximately equal to the settling time given by the stepinfo command.

Dominant poles are assumed by seeing the pzmap of G2.

Part c):
Poles for K2=300000 are:

S 1,2 =-0.219±5.05i

S 3,4 =-31.6±13.2i

Poles for K2= 500000 are:

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:

Minimum value of settling time is for k2=300000.


Task 2:
MATLAB Code:

clc
clear all
close all
syms s
num=[1];
den=[1 1 100];
fun=tf(num,den);

t = linspace(0, 100, 1000); % Time


Vector
u = sin(t); % Forcing
Function
y = lsim(fun, u, t);
margin(fun)

Part a):
The transfer function of the given system is given below:

2pwn=c=2*0.05*10=1

𝑤𝑛2 =k=100

Transfer function= 1/(𝑠 2 + 𝑠 + 100)

Bode Plot of the given function is given below:


Part b):
1):

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.

Smallest Damping Frequency .61 where ts=6sec.


Smallest Frequency Plot:

Largest Frequency Plot:


Part c):
MATLAB Code:

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.

Anda mungkin juga menyukai