Professional Documents
Culture Documents
Time and Frequency Response of Firsystem PDF
Time and Frequency Response of Firsystem PDF
3- Show the time response for the second order system at different input values and initial codition
6- Apply the PID controller on the system and show the response
Procedure
Part one: partial fraction
[r,p,g] = residue (num , den)
Example:
Write matlab programme on m-file
num = [ 1 2 1 0]
den = [1 3 2]
Result is
r = [ -2 2]
p = [-2 -1]
g = [1 -1]
syms s
f = (s+1)/(s^2+6*s+9)
t = feedback (v,1) make the closed loop system with unity feedback
step(5*t , 20) plot the response due to step input which 5 represent
t = feedback (v,1) make the closed loop system with unity feedback
Example 1:
h = feedback (v,1) make the closed loop system with unity feedback
u= 2*t define the function for input which represent ramp input
lsim(h ,u ,t) plot the response to input function in this example ramp input
Example 2:
h = feedback (v,1) make the closed loop system with unity feedback
u= sin(t) define the function for input which represent sin input
lsim(h ,u ,t) plot the response to input function in this example sin input
Part four: bode diagram for the system
t = feedback (v,1) make the closed loop system with unity feedback
bode (t) plot the magnitude in db and phase angle due to frequency in rad/s
t = feedback (v,1) make the closed loop system with unity feedback
t = feedback (v,1) make the closed loop system with unity feedback
t = feedback (v,1) make the closed loop system with unity feedback
t = feedback (v,1) make the closed loop system with unity feedback