You are on page 1of 7

COMPLEX ENGINEERING PROBLEM SOLUTION

MATLAB CODE WITH OUTPUT RESULT:


%Saifullah
Num=[0 1];
Den=[0.5 1.5 1]
plant=tf(Num,Den);
Kp=1.1;
Ki=0.90;
controller=tf([Kp Ki],[1 0]);
sys=feedback(controller*plant,[1],-1)
step(sys)
stepinfo(sys)

RiseTime: 1.6238

SettlingTime: 2.5865

SettlingMin: 0.9070

SettlingMax: 0.9968

Overshoot: 0

Undershoot: 0
Peak: 0.9968

PeakTime: 3.3313

kp=1.1 and ki=0.96


Step Response
1
System: sys System: sys
0.9 Settling time (seconds): 2.59 Peak amplitude: >= 0.993
Overshoot (%): 0
0.8 At time (seconds): > 4

0.7

0.6
Amplitude

0.5

0.4

0.3

0.2

0.1

0
0 0.5 1 1.5 2 2.5 3 3.5 4
Time (seconds)

MATLAB code m.file attached also in other file

You might also like