0% found this document useful (0 votes)
21 views

Help With Matlab

The document describes creating an open loop transfer function with poles at -1, -2, and -3 and a gain of 5. It then creates the closed loop system using feedback and verifies the closed loop stability by checking the poles are in the left half plane and examining the step response. It also shows that changing the gain to 70 makes the closed loop system unstable. Finally, it examines the step response properties of the stable closed loop system over 20 seconds.

Uploaded by

ShaikAzhar
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Help With Matlab

The document describes creating an open loop transfer function with poles at -1, -2, and -3 and a gain of 5. It then creates the closed loop system using feedback and verifies the closed loop stability by checking the poles are in the left half plane and examining the step response. It also shows that changing the gain to 70 makes the closed loop system unstable. Finally, it examines the step response properties of the stable closed loop system over 20 seconds.

Uploaded by

ShaikAzhar
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Suppose the open loop transfer function

) ( ) ( s H s G
is
) 3 )( 2 )( 1 (
5
+ + + s s s
. Write
the command to create this open loop system
s1= zpk([],[-1,-2,-3],5)
Make the closed loop (feedback) system
s2=feedback(s1,1)
Now fnd the closed loop poles
pole(s2)
Since all the poles are in the left half s-plane , the closed loop system is stable.
ou can also !erify the closed loop stability by fndin" the step response of the
closed loop system.
step(s2)
#f you chan"e the numerator of the open loop transfer function from $ to %&, i.e,
) 3 )( 2 )( 1 (
70
+ + + s s s
, then the closed loop system is unstable.
'or the stable closed loop system, to fnd the time domain specifcations, write
step(s2,20)
(hen ri"ht click the "raph to see peak response, steady state etc, then brin" the
cursor to the blue dots.
Step Response
Time (sec)
A
m
p
l
i
t
u
d
e
0 2 4 6 8 10 12 14 16 18 20
0
0.05
0.1
0.15
0.2
0.25
0.3
0.35
0.4
0.45
0.5
System: s2
Peak amplitude: 0.487
Overshoot (%): 7.15
At time (sec): 2.73
System: s2
Final Value: 0.455

You might also like