Universidad de Puerto Rico Recinto Universitario de Mayagüez Mayagüez, Puerto Rico

Computer Homework #1

Ennio A. Gaud Figueroa (802-07-2972) Rubén J. Pérez Rivera (843-06-6160) INEL 4505 Prof. Shawn David Hunt

>> alpha=5. >> b=[(w*w)/(z*alpha)*[1 z]]. >> step(sys). >> zeta=.75. Step Response Control >> w=500.We plotted in MATLAB the step response of a 3rd order system with finite zeros ( ) ⁄ ( ) We varied this equation and plotted the results to see how changed with each parameter. We set a step response control and we will be evaluating based on that step response. >> z=2. >> sys=tf(b. .[1 alpha])].a). >> a=[conv([1 2*zeta*w w*w].

1 0. >> alpha=5. >> b=[(w*w)/(z*alpha)*[1 z]].02 0 0 0. >> a=[conv([1 2*zeta*w w*w].08 Amplitude 0.[1 alpha])]. >> step(sys).8 1 1. >> sys=tf(b.06 0.2 Step Response (Change in Wn) >> w=100.6 Time (sec) 0.12 0. >> z=2.Step Response 0. .4 0.a).2 0. >> zeta=.75.04 0.

06 Amplitude 0.2 Here we can see comparing this graph with the step response control graph that the amplitude change as we change the natural frequency of the system. >> a=[conv([1 2*zeta*w w*w].03 0. .1 0. >> zeta=.[1 alpha])].04 0.Step Response 0.a).75.4 0. >> z=5.09 0. >> sys=tf(b.07 0. Step Response ( Change in z) >> w=500. Also we can see that the system gets to its final value a bit late.05 0.2 0. >> alpha=5.02 0.01 0 0 0. >> b=[(w*w)/(z*alpha)*[1 z]].8 1 1.08 0.6 Time (sec) 0.

. Step Response 0.02 0.>> step(sys).015 0.025 0.03 Amplitude 0.035 0. It also presents an overshoot in the rise as the system tries to get to steady state. and the system got to its final value faster.005 Time (sec) 0.045 0.04 0.015 We can see that putting a zero on the system.01 0.01 0. the amplitude changed.005 0 0 0.

4 1. >> zeta=100.[1 alpha])]. >> alpha=5.4 0. >> z=2. Step Response 0.01 0.2 0.045 0. >> a=[conv([1 2*zeta*w w*w]. >> b=[(w*w)/(z*alpha)*[1 z]].6 .6 0. >> sys=tf(b.a).025 0.2 1.03 Amplitude 0.8 Time (sec) 1 1.04 0.Step Response (Change in ζ) >> w=500.02 0.015 0.005 0 0 0. >> step(sys).035 0.

>> b=[(w*w)/(z*alpha)*[1 z]].03 Time (sec) 0.02 0. >> sys=tf(b.5 0 0 0.[1 alpha])]. >> a=[conv([1 2*zeta*w w*w]. >> zeta=.Changing ζ again presents a small overshoot to the system and also its get to its final value more slowly than varying the other parameters. >> alpha=100.05 0.75.5 1 0.01 0.5 x 10 -3 Step Response 3 2.a). >> step(sys). Step Response (Change in α) >> w=500. >> z=2.06 . 3.04 0.5 Amplitude 2 1.

. we can see how the pole affect the response of the system and we see how with an addtional pole we can make the system get faster to its final value although this can make the system not stable.With the change in α.