Help With Matlab
Help With Matlab
) ( ) ( 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