Different simulation results using discrete and continous systems
Show older comments
I have a simple system (H(s) = 1/s^2+10s+20). I've added a proportional controller(Kp = 300) to the system to observe the step response. I used Simulink to do this (fixed-step size: 0.01, solver: ode8).
I also used the c2d function to create the z-transform (H(z)= c2d(H,0.01)) and then added the same proportional controller to observe the step response. In this case, I used both Simulink (fixed-step size: 0.01, solver: discrete) and a simple m file I wrote using the difference equation coming from the z-transform.
Now, I have three step responses. All of them have the same steady state response but the transient response is different (overshoot amplitude is different between all three).
I appreciate if someone can explain to me why this is happening.
Omid
2 Comments
Azzi Abdelmalek
on 30 Oct 2013
You have the continuous and discrete system, what is the third?
Answers (1)
Azzi Abdelmalek
on 30 Oct 2013
0 votes
Why are you expecting to get the same step response for both continuous and discrete model with the same continuous proportional controller? If you want to get the same step response you should apply c2d to the continuous model in a closed loop: Kp*H(p)/(1+Kp*H(p))
Categories
Find more on Interactive and Graphical Tuning in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!